C# Класс BEPUutilities2.Matrix

Provides SIMD-aware 4x4 matrix math.
All functions assume row vectors.
Показать файл Открыть проект

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

Свойство Тип Описание
W Vector4
X Vector4
Y Vector4
Z Vector4

Открытые методы

Метод Описание
CreateLookAt ( Vector3 position, Vector3 target, Vector3 upVector ) : Matrix

Creates a view matrix pointing from a position to a target with the given up vector.

CreateLookAt ( Vector3 &position, Vector3 &target, Vector3 &upVector, Matrix &viewMatrix ) : void

Creates a view matrix pointing from a position to a target with the given up vector.

CreateOrthographic ( float left, float right, float bottom, float top, float zNear, float zFar, Matrix &projection ) : void

Creates a right handed orthographic projection.

CreateView ( Vector3 position, Vector3 forward, Vector3 upVector ) : Matrix

Creates a view matrix pointing looking in a direction with a given up vector.

CreateView ( Vector3 &position, Vector3 &forward, Vector3 &upVector, Matrix &viewMatrix ) : void

Creates a view matrix pointing in a direction with a given up vector.

Invert ( Matrix m ) : Matrix

Inverts the matrix.

Invert ( Matrix &m, Matrix &inverted ) : void

Inverts the matrix.

Приватные методы

Метод Описание
CreateFromAxisAngle ( Vector3 axis, float angle ) : Matrix
CreateFromAxisAngle ( Vector3 &axis, float angle, Matrix &result ) : void
CreateFromQuaternion ( Quaternion quaternion ) : Matrix
CreateFromQuaternion ( Quaternion &quaternion, Matrix &result ) : void
CreatePerspectiveFieldOfView ( float fieldOfView, float aspectRatio, float nearClip, float farClip ) : Matrix
CreatePerspectiveFieldOfView ( float fieldOfView, float aspectRatio, float nearClip, float farClip, Matrix &perspective ) : void
CreatePerspectiveFieldOfViewLH ( float fieldOfView, float aspectRatio, float nearClip, float farClip, Matrix &perspective ) : void
CreatePerspectiveFromFieldOfViews ( float verticalFieldOfView, float horizontalFieldOfView, float nearClip, float farClip ) : Matrix
CreatePerspectiveFromFieldOfViews ( float verticalFieldOfView, float horizontalFieldOfView, float nearClip, float farClip, Matrix &perspective ) : void
Multiply ( Matrix &a, Matrix &b, Matrix &result ) : void
Transform ( Vector4 &v, Matrix &m, Vector4 &result ) : void
TransformTranspose ( Vector4 &v, Matrix &m, Vector4 &result ) : void
Transpose ( Matrix m ) : Matrix
Transpose ( M m, M transposed ) : void
Transpose ( Matrix m, Matrix transposed ) : void
operator ( ) : Matrix

Описание методов

CreateLookAt() публичный статический Метод

Creates a view matrix pointing from a position to a target with the given up vector.
public static CreateLookAt ( Vector3 position, Vector3 target, Vector3 upVector ) : Matrix
position Vector3 Position of the camera.
target Vector3 Target of the camera.
upVector Vector3 Up vector of the camera.
Результат Matrix

CreateLookAt() публичный статический Метод

Creates a view matrix pointing from a position to a target with the given up vector.
public static CreateLookAt ( Vector3 &position, Vector3 &target, Vector3 &upVector, Matrix &viewMatrix ) : void
position Vector3 Position of the camera.
target Vector3 Target of the camera.
upVector Vector3 Up vector of the camera.
viewMatrix Matrix Look at matrix.
Результат void

CreateOrthographic() публичный статический Метод

Creates a right handed orthographic projection.
public static CreateOrthographic ( float left, float right, float bottom, float top, float zNear, float zFar, Matrix &projection ) : void
left float Leftmost coordinate of the projected area.
right float Rightmost coordinate of the projected area.
bottom float Bottom coordinate of the projected area.
top float Top coordinate of the projected area.
zNear float Near plane of the projection.
zFar float Far plane of the projection.
projection Matrix The resulting orthographic projection matrix.
Результат void

CreateView() публичный статический Метод

Creates a view matrix pointing looking in a direction with a given up vector.
public static CreateView ( Vector3 position, Vector3 forward, Vector3 upVector ) : Matrix
position Vector3 Position of the camera.
forward Vector3 Forward direction of the camera.
upVector Vector3 Up vector of the camera.
Результат Matrix

CreateView() публичный статический Метод

Creates a view matrix pointing in a direction with a given up vector.
public static CreateView ( Vector3 &position, Vector3 &forward, Vector3 &upVector, Matrix &viewMatrix ) : void
position Vector3 Position of the camera.
forward Vector3 Forward direction of the camera.
upVector Vector3 Up vector of the camera.
viewMatrix Matrix Look at matrix.
Результат void

Invert() публичный статический Метод

Inverts the matrix.
public static Invert ( Matrix m ) : Matrix
m Matrix Matrix to invert.
Результат Matrix

Invert() публичный статический Метод

Inverts the matrix.
public static Invert ( Matrix &m, Matrix &inverted ) : void
m Matrix Matrix to invert.
inverted Matrix Inverted version of the matrix.
Результат void

Описание свойств

W публичное свойство

Row 4 of the matrix.
public Vector4 W
Результат Vector4

X публичное свойство

Row 1 of the matrix.
public Vector4 X
Результат Vector4

Y публичное свойство

Row 2 of the matrix.
public Vector4 Y
Результат Vector4

Z публичное свойство

Row 3 of the matrix.
public Vector4 Z
Результат Vector4