Vector3D.Length Property

Gets the length of this Vector3D structure.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public double Length { get; }

Property Value

Type: System.Double
The length of this Vector3D structure.

The length of a Vector3D is sometimes referred to as the magnitude.

The following example shows how to get the length of a Vector3D structure.

						// Gets the length of a Vector3D.   
						// Returns a Double.

						Vector3D vector1 = new Vector3D(20, 30, 40);
						Double length;

						length = vector1.Length;
                        // length is approximately equal to 53.85165

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft