Vector3D.Length Właściwość

Definicja

Pobiera długość tej Vector3D struktury.

public:
 property double Length { double get(); };
public double Length { get; }
member this.Length : double
Public ReadOnly Property Length As Double

Wartość właściwości

Double

Długość tej Vector3D struktury.

Przykłady

W poniższym przykładzie pokazano, jak uzyskać długość Vector3D struktury.

// 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
' Gets the length of a Vector3D.  
' Returns a Double.

Dim vector1 As New Vector3D(20, 30, 40)
Dim length As Double

length = vector1.Length
' length is approximately equal to 53.85165

Uwagi

Długość a Vector3D jest czasami określana jako wielkość.

Dotyczy