C# 클래스 BEPUutilities2.Matrix

Provides SIMD-aware 4x4 matrix math.
All functions assume row vectors.
파일 보기 프로젝트 열기: RossNordby/scratchpad

공개 프로퍼티들

프로퍼티 타입 설명
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