C# 클래스 NewTOAPIA.GL.Matrix4

파일 보기 프로젝트 열기: Wiladams/NewTOAPIA 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Identity Matrix4

공개 메소드들

메소드 설명
Frustum ( float left, float right, float bottom, float top, float near, float far ) : Matrix4

Build a projection matrix

Invert ( Matrix4 mat ) : Matrix4

Calculate the inverse of the given matrix

LookAt ( Vector3f eye, Vector3f target, Vector3f up ) : Matrix4

Build a world space to camera space matrix

Matrix4 ( ) : System
Matrix4 ( float elements ) : System
Matrix4 ( float4 row0, float4 row1, float4 row2, float4 row3 ) : System

Construct a new matrix from 4 vectors representing each row

Mult ( Matrix4 left, Matrix4 right ) : Matrix4

Post multiply this matrix by another matrix

Mult ( Matrix4 &left, Matrix4 &right, Matrix4 &result ) : void
Perspective ( float fovy, float aspect, float near, float far ) : Matrix4

Build a projection matrix

Rotate ( Quaternion q ) : Matrix4

Build a rotation matrix from a quaternion

Rotate ( float3 axis, float angle ) : Matrix4

Build a rotation matrix to rotate about the given axis

RotateX ( float angle ) : Matrix4

Build a rotation matrix that rotates about the x-axis

RotateY ( float angle ) : Matrix4

Build a rotation matrix that rotates about the y-axis

RotateZ ( float angle ) : Matrix4

Build a rotation matrix that rotates about the z-axis

Scale ( float x, float y, float z ) : void
Set ( float vec ) : void
SetToIdentity ( ) : void
ToString ( ) : string

Returns a System.String that represents the current Matrix44.

Translate ( float x, float y, float z ) : void
Translation ( Vector3f trans ) : Matrix4

Build a translation matrix with the given translation

Translation ( float x, float y, float z ) : Matrix4

Build a translation matrix with the given translation

Transpose ( Matrix4 mat ) : Matrix4

Calculate the transpose of the given matrix

Transpose ( ) : void
Transpose ( Matrix4 &mat, Matrix4 &result ) : void

Calculate the transpose of the given matrix

get ( int x, int y ) : float
operator ( ) : Matrix4

Matrix multiplication

메소드 상세

Frustum() 공개 정적인 메소드

Build a projection matrix
public static Frustum ( float left, float right, float bottom, float top, float near, float far ) : Matrix4
left float Left edge of the view frustum
right float Right edge of the view frustum
bottom float Bottom edge of the view frustum
top float Top edge of the view frustum
near float Distance to the near clip plane
far float Distance to the far clip plane
리턴 Matrix4

Invert() 공개 정적인 메소드

Calculate the inverse of the given matrix
Thrown if the Matrix4 is singular.
public static Invert ( Matrix4 mat ) : Matrix4
mat Matrix4 The matrix to invert
리턴 Matrix4

LookAt() 공개 정적인 메소드

Build a world space to camera space matrix
public static LookAt ( Vector3f eye, Vector3f target, Vector3f up ) : Matrix4
eye Vector3f Eye (camera) position in world space
target Vector3f Target position in world space
up Vector3f Up vector in world space (should not be parallel to the camera direction, that is target - eye)
리턴 Matrix4

Matrix4() 공개 메소드

public Matrix4 ( ) : System
리턴 System

Matrix4() 공개 메소드

public Matrix4 ( float elements ) : System
elements float
리턴 System

Matrix4() 공개 메소드

Construct a new matrix from 4 vectors representing each row
public Matrix4 ( float4 row0, float4 row1, float4 row2, float4 row3 ) : System
row0 float4 Top row of the matrix
row1 float4 2nd row of the matrix
row2 float4 3rd row of the matrix
row3 float4 Bottom row of the matrix
리턴 System

Mult() 공개 정적인 메소드

Post multiply this matrix by another matrix
public static Mult ( Matrix4 left, Matrix4 right ) : Matrix4
left Matrix4
right Matrix4 The matrix to multiply
리턴 Matrix4

Mult() 공개 정적인 메소드

public static Mult ( Matrix4 &left, Matrix4 &right, Matrix4 &result ) : void
left Matrix4
right Matrix4
result Matrix4
리턴 void

Perspective() 공개 정적인 메소드

Build a projection matrix
public static Perspective ( float fovy, float aspect, float near, float far ) : Matrix4
fovy float Angle of the field of view in the y direction (in radians)
aspect float Aspect ratio of the view (width / height)
near float Distance to the near clip plane
far float Distance to the far clip plane
리턴 Matrix4

Rotate() 공개 정적인 메소드

Build a rotation matrix from a quaternion
public static Rotate ( Quaternion q ) : Matrix4
q Quaternion the quaternion
리턴 Matrix4

Rotate() 공개 정적인 메소드

Build a rotation matrix to rotate about the given axis
public static Rotate ( float3 axis, float angle ) : Matrix4
axis float3 the axis to rotate about
angle float angle in radians to rotate counter-clockwise (looking in the direction of the given axis)
리턴 Matrix4

RotateX() 공개 정적인 메소드

Build a rotation matrix that rotates about the x-axis
public static RotateX ( float angle ) : Matrix4
angle float angle in radians to rotate counter-clockwise around the x-axis
리턴 Matrix4

RotateY() 공개 정적인 메소드

Build a rotation matrix that rotates about the y-axis
public static RotateY ( float angle ) : Matrix4
angle float angle in radians to rotate counter-clockwise around the y-axis
리턴 Matrix4

RotateZ() 공개 정적인 메소드

Build a rotation matrix that rotates about the z-axis
public static RotateZ ( float angle ) : Matrix4
angle float angle in radians to rotate counter-clockwise around the z-axis
리턴 Matrix4

Scale() 공개 메소드

public Scale ( float x, float y, float z ) : void
x float
y float
z float
리턴 void

Set() 공개 메소드

public Set ( float vec ) : void
vec float
리턴 void

SetToIdentity() 공개 메소드

public SetToIdentity ( ) : void
리턴 void

ToString() 공개 메소드

Returns a System.String that represents the current Matrix44.
public ToString ( ) : string
리턴 string

Translate() 공개 메소드

public Translate ( float x, float y, float z ) : void
x float
y float
z float
리턴 void

Translation() 공개 정적인 메소드

Build a translation matrix with the given translation
public static Translation ( Vector3f trans ) : Matrix4
trans Vector3f The vector to translate along
리턴 Matrix4

Translation() 공개 정적인 메소드

Build a translation matrix with the given translation
public static Translation ( float x, float y, float z ) : Matrix4
x float X translation
y float Y translation
z float Z translation
리턴 Matrix4

Transpose() 공개 정적인 메소드

Calculate the transpose of the given matrix
public static Transpose ( Matrix4 mat ) : Matrix4
mat Matrix4 The matrix to transpose
리턴 Matrix4

Transpose() 공개 메소드

public Transpose ( ) : void
리턴 void

Transpose() 공개 정적인 메소드

Calculate the transpose of the given matrix
public static Transpose ( Matrix4 &mat, Matrix4 &result ) : void
mat Matrix4 The matrix to transpose
result Matrix4
리턴 void

get() 공개 메소드

public get ( int x, int y ) : float
x int
y int
리턴 float

operator() 공개 정적인 메소드

Matrix multiplication
public static operator ( ) : Matrix4
리턴 Matrix4

프로퍼티 상세

Identity 정적으로 공개적으로 프로퍼티

The identity matrix
static public Matrix4,NewTOAPIA.GL Identity
리턴 Matrix4