C# 클래스 StdPaint.Vector3

A vector representing a point in 3D space.
파일 보기 프로젝트 열기: TheBerkin/StdPaint

공개 프로퍼티들

프로퍼티 타입 설명
X double
Y double
Z double

공개 메소드들

메소드 설명
Distance ( Vector3 a, Vector3 b ) : double

Returns the distance between two vectors.

DistanceSquared ( Vector3 a, Vector3 b ) : double

Returns the squared distance between two vectors.

Dot ( Vector3 a, Vector3 b ) : double

Returns the dot product of two vectors.

Normalize ( Vector3 vector ) : Vector3

Returns the normalized version of a vector.

Vector3 ( double x, double y, double z ) : System

Create a new Vector3 from coordinates.

operator ( ) : Vector3

Multiplies a vector by a matrix..

메소드 상세

Distance() 공개 정적인 메소드

Returns the distance between two vectors.
public static Distance ( Vector3 a, Vector3 b ) : double
a Vector3 The first vector.
b Vector3 The second vector.
리턴 double

DistanceSquared() 공개 정적인 메소드

Returns the squared distance between two vectors.
public static DistanceSquared ( Vector3 a, Vector3 b ) : double
a Vector3 The first vector.
b Vector3 The second vector.
리턴 double

Dot() 공개 정적인 메소드

Returns the dot product of two vectors.
public static Dot ( Vector3 a, Vector3 b ) : double
a Vector3 The first vector.
b Vector3 The second vector.
리턴 double

Normalize() 공개 정적인 메소드

Returns the normalized version of a vector.
public static Normalize ( Vector3 vector ) : Vector3
vector Vector3 The vector to normalize.
리턴 Vector3

Vector3() 공개 메소드

Create a new Vector3 from coordinates.
public Vector3 ( double x, double y, double z ) : System
x double The X coordinate.
y double The Y coordinate.
z double The Z coordinate.
리턴 System

operator() 공개 정적인 메소드

Multiplies a vector by a matrix..
public static operator ( ) : Vector3
리턴 Vector3

프로퍼티 상세

X 공개적으로 프로퍼티

The X coodinate.
public double X
리턴 double

Y 공개적으로 프로퍼티

The Y coordinate.
public double Y
리턴 double

Z 공개적으로 프로퍼티

The Z coordinate.
public double Z
리턴 double