C# Class hyades.Camera

Show file Open project: zfedoran/bubblebound Class Usage Examples

Public Properties

Property Type Description
boundingfrustum BoundingFrustum
fov float
pauseBoundingFrustumUpdates bool
position Vector3
view Matrix

Public Methods

Method Description
Camera ( ) : System
CreateCameraMatrix ( Vector3 &rotation, Matrix &matrix ) : void
CreateCameraMatrix ( Vector3 &rotation, Vector3 &position, Matrix &matrix ) : void
CullTest ( Microsoft.Xna.Framework.BoundingBox &aabb ) : bool
Project ( Vector3 source ) : Vector3
Update ( double elapsed ) : void

Private Methods

Method Description
WithinEpsilon ( float a, float b ) : bool

Method Details

Camera() public method

public Camera ( ) : System
return System

CreateCameraMatrix() public static method

public static CreateCameraMatrix ( Vector3 &rotation, Matrix &matrix ) : void
rotation Vector3
matrix Matrix
return void

CreateCameraMatrix() public static method

public static CreateCameraMatrix ( Vector3 &rotation, Vector3 &position, Matrix &matrix ) : void
rotation Vector3
position Vector3
matrix Matrix
return void

CullTest() public method

public CullTest ( Microsoft.Xna.Framework.BoundingBox &aabb ) : bool
aabb Microsoft.Xna.Framework.BoundingBox
return bool

Project() public method

public Project ( Vector3 source ) : Vector3
source Vector3
return Vector3

Update() public method

public Update ( double elapsed ) : void
elapsed double
return void

Property Details

boundingfrustum public property

public BoundingFrustum boundingfrustum
return BoundingFrustum

fov public property

public float fov
return float

pauseBoundingFrustumUpdates public property

public bool pauseBoundingFrustumUpdates
return bool

position public property

public Vector3 position
return Vector3

view public property

public Matrix view
return Matrix