Property | Type | Description | |
---|---|---|---|
m_AspectRatio | float | ||
m_CachedCameraData | float4 | ||
m_Camera2Proj | |||
m_Camera2World | |||
m_Far | float | ||
m_Near | float | ||
m_OrthoHeight | float | ||
m_PerspFOV | float | ||
m_Proj2Camera | |||
m_Proj2World | |||
m_World2Camera | |||
m_World2Proj | |||
m_bActive | bool | ||
m_bIsPerspective | bool |
Property | Type | Description |
---|
Method | Description | |
---|---|---|
BuildCameraRay ( float _X, float _Y, |
/// Builds a camera ray in WORLD space /// Builds a camera ray in CAMERA space
|
|
Camera ( ) : System |
Creates a default camera
|
|
CreatePerspectiveCamera ( float _FOV, float _AspectRatio, float _Near, float _Far ) : void |
Creates a perspective projection float4x4 for the camera
|
|
LookAt ( |
Makes the camera look at the specified target from the specified eye position
|
|
ProjectPoint ( |
Projects a 3D point in 2D
|
|
ProjectVector ( |
Projects a 3D vector in 2D
|
Method | Description | |
---|---|---|
RebuildProjection ( ) : void |
/// Creates an orthogonal projection float4x4 for the camera /// Rebuilds the camera projection data after a change
|
public BuildCameraRay ( float _X, float _Y, |
||
_X | float | The normalized X coordinate in [0,1] (0 is left screen border and 1 is right screen border) |
_Y | float | The normalized Y coordinate in [0,1] (0 is top screen border and 1 is bottom screen border) |
_Position | ||
_Direction | ||
return | void |
public CreatePerspectiveCamera ( float _FOV, float _AspectRatio, float _Near, float _Far ) : void | ||
_FOV | float | |
_AspectRatio | float | |
_Near | float | |
_Far | float | |
return | void |
public LookAt ( |
||
_Eye | ||
_Target | ||
_Up | ||
return | void |
public ProjectPoint ( |
||
_Position | ||
return | float2 |
public ProjectVector ( |
||
_Vector | ||
return | float2 |
protected float4x4,SharpMath m_Camera2Proj | ||
return |
protected float4x4,SharpMath m_Camera2World | ||
return |
protected float4x4,SharpMath m_Proj2Camera | ||
return |
protected float4x4,SharpMath m_World2Camera | ||
return |