Vector.Length 속성

정의

이 벡터의 길이를 가져옵니다.

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

속성 값

Double

이 벡터의 길이입니다.

예제

다음 예제에서는 벡터의 길이를 가져오는이 속성을 사용 하는 방법입니다.

private Double lengthExample()
{  

    Vector vector1 = new Vector(20, 30);

    // Get the length of the vector.
    // length is approximately equal to 36.0555
    Double lengthResult = vector1.Length;

    return lengthResult;
}
Private Function lengthExample() As Double

    Dim vector1 As New Vector(20, 30)

    ' Get the length of the vector.
    ' length is approximately equal to 36.0555
    Dim lengthResult As Double = vector1.Length

    Return lengthResult

End Function

설명

벡터의 길이 크기가 라고도 합니다.

적용 대상