C# 클래스 Accord.Math.Vector3

파일 보기 프로젝트 열기: accord-net/framework 1 사용 예제들

공개 프로퍼티들

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

공개 메소드들

메소드 설명
Abs ( ) : Vector3

Calculate absolute values of the vector.

Add ( Vector3 vector1, Vector3 vector2 ) : Vector3

Adds corresponding coordinates of two vectors.

Add ( Vector3 vector, float value ) : Vector3

Adds a value to all coordinates of the specified vector.

Cross ( Vector3 vector1, Vector3 vector2 ) : Vector3

Calculates cross product of two vectors.

Divide ( Vector3 vector1, Vector3 vector2 ) : Vector3

Divides corresponding coordinates of two vectors.

Divide ( Vector3 vector, float factor ) : Vector3

Divides coordinates of the specified vector by the specified factor.

Dot ( Vector3 vector1, Vector3 vector2 ) : float

Calculates dot product of two vectors.

Equals ( Object obj ) : bool

Tests whether the vector equals to the specified object.

Equals ( Vector3 vector ) : bool

Tests whether the vector equals to the specified one.

GetHashCode ( ) : int

Returns the hashcode for this instance.

Inverse ( ) : Vector3

Inverse the vector.

Multiply ( Vector3 vector1, Vector3 vector2 ) : Vector3

Multiplies corresponding coordinates of two vectors.

Multiply ( Vector3 vector, float factor ) : Vector3

Multiplies coordinates of the specified vector by the specified factor.

Normalize ( ) : float

Normalizes the vector by dividing it’s all coordinates with the vector's norm.

Subtract ( Vector3 vector1, Vector3 vector2 ) : Vector3

Subtracts corresponding coordinates of two vectors.

Subtract ( Vector3 vector, float value ) : Vector3

Subtracts a value from all coordinates of the specified vector.

ToArray ( ) : float[]

Returns array representation of the vector.

ToString ( ) : string

Returns a string representation of this object.

ToVector4 ( ) : Vector4

Converts the vector to a 4D vector.

The method returns a 4D vector which has X, Y and Z coordinates equal to the coordinates of this 3D vector and W coordinate set to 1.0.

Vector3 ( float value ) : System

Initializes a new instance of the Vector3 structure.

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

Initializes a new instance of the Vector3 structure.

operator ( ) : Vector3

Adds corresponding coordinates of two vectors.

operator ( ) : bool

Tests whether two specified vectors are equal.

메소드 상세

Abs() 공개 메소드

Calculate absolute values of the vector.
public Abs ( ) : Vector3
리턴 Vector3

Add() 공개 정적인 메소드

Adds corresponding coordinates of two vectors.
public static Add ( Vector3 vector1, Vector3 vector2 ) : Vector3
vector1 Vector3 The vector to add to.
vector2 Vector3 The vector to add to the first vector.
리턴 Vector3

Add() 공개 정적인 메소드

Adds a value to all coordinates of the specified vector.
public static Add ( Vector3 vector, float value ) : Vector3
vector Vector3 Vector to add the specified value to.
value float Value to add to all coordinates of the vector.
리턴 Vector3

Cross() 공개 정적인 메소드

Calculates cross product of two vectors.
public static Cross ( Vector3 vector1, Vector3 vector2 ) : Vector3
vector1 Vector3 First vector to use for cross product calculation.
vector2 Vector3 Second vector to use for cross product calculation.
리턴 Vector3

Divide() 공개 정적인 메소드

Divides corresponding coordinates of two vectors.
public static Divide ( Vector3 vector1, Vector3 vector2 ) : Vector3
vector1 Vector3 The first vector to divide.
vector2 Vector3 The second vector to devide.
리턴 Vector3

Divide() 공개 정적인 메소드

Divides coordinates of the specified vector by the specified factor.
public static Divide ( Vector3 vector, float factor ) : Vector3
vector Vector3 Vector to divide coordinates of.
factor float Factor to divide coordinates of the specified vector by.
리턴 Vector3

Dot() 공개 정적인 메소드

Calculates dot product of two vectors.
public static Dot ( Vector3 vector1, Vector3 vector2 ) : float
vector1 Vector3 First vector to use for dot product calculation.
vector2 Vector3 Second vector to use for dot product calculation.
리턴 float

Equals() 공개 메소드

Tests whether the vector equals to the specified object.
public Equals ( Object obj ) : bool
obj Object The object to test equality with.
리턴 bool

Equals() 공개 메소드

Tests whether the vector equals to the specified one.
public Equals ( Vector3 vector ) : bool
vector Vector3 The vector to test equality with.
리턴 bool

GetHashCode() 공개 메소드

Returns the hashcode for this instance.
public GetHashCode ( ) : int
리턴 int

Inverse() 공개 메소드

Inverse the vector.
public Inverse ( ) : Vector3
리턴 Vector3

Multiply() 공개 정적인 메소드

Multiplies corresponding coordinates of two vectors.
public static Multiply ( Vector3 vector1, Vector3 vector2 ) : Vector3
vector1 Vector3 The first vector to multiply.
vector2 Vector3 The second vector to multiply.
리턴 Vector3

Multiply() 공개 정적인 메소드

Multiplies coordinates of the specified vector by the specified factor.
public static Multiply ( Vector3 vector, float factor ) : Vector3
vector Vector3 Vector to multiply coordinates of.
factor float Factor to multiple coordinates of the specified vector by.
리턴 Vector3

Normalize() 공개 메소드

Normalizes the vector by dividing it’s all coordinates with the vector's norm.
public Normalize ( ) : float
리턴 float

Subtract() 공개 정적인 메소드

Subtracts corresponding coordinates of two vectors.
public static Subtract ( Vector3 vector1, Vector3 vector2 ) : Vector3
vector1 Vector3 The vector to subtract from.
vector2 Vector3 The vector to subtract from the first vector.
리턴 Vector3

Subtract() 공개 정적인 메소드

Subtracts a value from all coordinates of the specified vector.
public static Subtract ( Vector3 vector, float value ) : Vector3
vector Vector3 Vector to subtract the specified value from.
value float Value to subtract from all coordinates of the vector.
리턴 Vector3

ToArray() 공개 메소드

Returns array representation of the vector.
public ToArray ( ) : float[]
리턴 float[]

ToString() 공개 메소드

Returns a string representation of this object.
public ToString ( ) : string
리턴 string

ToVector4() 공개 메소드

Converts the vector to a 4D vector.

The method returns a 4D vector which has X, Y and Z coordinates equal to the coordinates of this 3D vector and W coordinate set to 1.0.

public ToVector4 ( ) : Vector4
리턴 Vector4

Vector3() 공개 메소드

Initializes a new instance of the Vector3 structure.
public Vector3 ( float value ) : System
value float Value, which is set to all 3 coordinates of the vector.
리턴 System

Vector3() 공개 메소드

Initializes a new instance of the Vector3 structure.
public Vector3 ( float x, float y, float z ) : System
x float X coordinate of the vector.
y float Y coordinate of the vector.
z float Z coordinate of the vector.
리턴 System

operator() 공개 정적인 메소드

Adds corresponding coordinates of two vectors.
public static operator ( ) : Vector3
리턴 Vector3

operator() 공개 정적인 메소드

Tests whether two specified vectors are equal.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

X 공개적으로 프로퍼티

X coordinate of the vector.
public float X
리턴 float

Y 공개적으로 프로퍼티

Y coordinate of the vector.
public float Y
리턴 float

Z 공개적으로 프로퍼티

Z coordinate of the vector.
public float Z
리턴 float