C# Класс Accord.Math.Vector4

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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