Bagikan melalui


Vector3D.Length Properti

Definisi

Mendapatkan panjang struktur ini Vector3D .

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

Nilai Properti

Panjang struktur ini Vector3D .

Contoh

Contoh berikut menunjukkan cara mendapatkan panjang Vector3D struktur.

// 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

Keterangan

Panjang a Vector3D kadang-kadang disebut sebagai besarannya.

Berlaku untuk