Sdílet prostřednictvím


Vector3D.Length Vlastnost

Definice

Získá délku této Vector3D struktury.

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

Hodnota vlastnosti

Double

Délka této Vector3D struktury.

Příklady

Následující příklad ukazuje, jak získat délku 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

Poznámky

Délka čáry Vector3D se někdy označuje jako velikost.

Platí pro