Vector3D.Normalize Vector3D.Normalize Vector3D.Normalize Vector3D.Normalize Method

정의

지정된 Vector3D 구조체를 정규화합니다.Normalizes the specified Vector3D structure.

public:
 void Normalize();
public void Normalize ();
member this.Normalize : unit -> unit
Public Sub Normalize ()

예제

다음 예제에서는 정규화 하는 방법을 보여 줍니다는 Vector3D 구조입니다.The following example shows how to normalize a Vector3D structure.

// Normalizes a Vector3D using the Normalize method.  
// Returns a Vector3D.

Vector3D vector1 = new Vector3D(20, 30, 40);

vector1.Normalize();
// vector1 is approximately equal to (0.37139, 0.55709, 0.74278) 
' Normalizes a Vector3D using the Normalize method.  
' Returns a Vector3D.

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

vector1.Normalize()
' vector1 is approximately equal to (0.37139, 0.55709) 

설명

정규화 된 Vector3D 가 해당 방향 하지만 해당 크기를 유지 관리 1합니다.A normalized Vector3D maintains its direction but its magnitude becomes 1. 결과 Vector3D 단위 벡터 라고 합니다.The resulting Vector3D is often called a unit vector. A Vector3D 나누어 정규화 되는 Vector3D 은 크기.A Vector3D is normalized by dividing the Vector3D by its magnitude.

적용 대상