C# 클래스 Accord.Math.Vector4

파일 보기 프로젝트 열기: accord-net/framework

공개 프로퍼티들

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

공개 메소드들

메소드 설명
Abs ( ) : Vector4

Calculate absolute values of the vector.

Add ( Vector4 vector1, Vector4 vector2 ) : Vector4

Adds corresponding coordinates of two vectors.

Add ( Vector4 vector, float value ) : Vector4

Adds a value to all coordinates of the specified vector.

Divide ( Vector4 vector1, Vector4 vector2 ) : Vector4

Divides corresponding coordinates of two vectors.

Divide ( Vector4 vector, float factor ) : Vector4

Divides coordinates of the specified vector by the specified factor.

Dot ( Vector4 vector1, Vector4 vector2 ) : float

Calculates dot product of two vectors.

Equals ( Object obj ) : bool

Tests whether the vector equals to the specified object.

Equals ( Vector4 vector ) : bool

Tests whether the vector equals to the specified one.

GetHashCode ( ) : int

Returns the hashcode for this instance.

Inverse ( ) : Vector4

Inverse the vector.

Multiply ( Vector4 vector1, Vector4 vector2 ) : Vector4

Multiplies corresponding coordinates of two vectors.

Multiply ( Vector4 vector, float factor ) : Vector4

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 ( Vector4 vector1, Vector4 vector2 ) : Vector4

Subtracts corresponding coordinates of two vectors.

Subtract ( Vector4 vector, float value ) : Vector4

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.

ToVector3 ( ) : Vector3

Converts the vector to a 3D vector.

Vector4 ( float value ) : System

Initializes a new instance of the Vector4 structure.

Vector4 ( float x, float y, float z, float w ) : System

Initializes a new instance of the Vector4 structure.

operator ( ) : Vector4

Adds corresponding coordinates of two vectors.

operator ( ) : bool

Tests whether two specified vectors are equal.

메소드 상세

Abs() 공개 메소드

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

Add() 공개 정적인 메소드

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

Add() 공개 정적인 메소드

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

Divide() 공개 정적인 메소드

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

Divide() 공개 정적인 메소드

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

Dot() 공개 정적인 메소드

Calculates dot product of two vectors.
public static Dot ( Vector4 vector1, Vector4 vector2 ) : float
vector1 Vector4 First vector to use for dot product calculation.
vector2 Vector4 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 ( Vector4 vector ) : bool
vector Vector4 The vector to test equality with.
리턴 bool

GetHashCode() 공개 메소드

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

Inverse() 공개 메소드

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

Multiply() 공개 정적인 메소드

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

Multiply() 공개 정적인 메소드

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

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 ( Vector4 vector1, Vector4 vector2 ) : Vector4
vector1 Vector4 The vector to subtract from.
vector2 Vector4 The vector to subtract from the first vector.
리턴 Vector4

Subtract() 공개 정적인 메소드

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

ToArray() 공개 메소드

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

ToString() 공개 메소드

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

ToVector3() 공개 메소드

Converts the vector to a 3D vector.
public ToVector3 ( ) : Vector3
리턴 Vector3

Vector4() 공개 메소드

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

Vector4() 공개 메소드

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

operator() 공개 정적인 메소드

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

operator() 공개 정적인 메소드

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

프로퍼티 상세

W 공개적으로 프로퍼티

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

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