Vector3D.Length 속성

정의

Vector3D 구조체의 길이를 가져옵니다.

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

속성 값

Double

Vector3D 구조체의 길이입니다.

예제

다음 예제에서는 구조체의 Vector3D 길이를 가져오는 방법을 보여줍니다.

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

설명

길이를 Vector3D 크기라고도 합니다.

적용 대상