Mallet Engine  2
Entity-Component based game engine, written in Java.
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | Static Public Attributes
com.linxonline.mallet.physics.OBB Class Reference
Collaboration diagram for com.linxonline.mallet.physics.OBB:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OBB ()
 OBB (final AABB _aabb)
 OBB (final Vector2 _topLeft, final Vector2 _topRight, final Vector2 _bottomLeft, final Vector2 _bottomRight)
void setPosition (final float _x, final float _y)
void translate (final float _x, final float _y)
void setOffset (final float _x, final float _y)
void setFromOBB (final OBB _obb)
void setDimensionsFromOBB (final OBB _obb)
Vector2 getAbsolutePoint (final int _index)
Vector2 getCenter ()
final void setRotation (final Vector2 _point, final float _theta)
final void updateAxesAndEdges ()

Public Attributes

Vector2 position = new Vector2()
Vector2 offset = new Vector2()
Vector2[] points = new Vector2[4]
Vector2[] axes = new Vector2[4]

Static Public Attributes

static final int TOP_LEFT = 0
static final int TOP_RIGHT = 1
static final int BOTTOM_LEFT = 2
static final int BOTTOM_RIGHT = 3

Constructor & Destructor Documentation

com.linxonline.mallet.physics.OBB.OBB ( final Vector2  _topLeft,
final Vector2  _topRight,
final Vector2  _bottomLeft,
final Vector2  _bottomRight 
)

Member Function Documentation

Get the points absolute position, this includes the offset and position of the OBB. returns a new Vector2().

Set the points and axes from the OBB being passed in. Keep the original position & offset.

Set the points and axes from the OBB being passed in. This also includes the position & offset.

void com.linxonline.mallet.physics.OBB.setOffset ( final float  _x,
final float  _y 
)
void com.linxonline.mallet.physics.OBB.setPosition ( final float  _x,
final float  _y 
)
final void com.linxonline.mallet.physics.OBB.setRotation ( final Vector2  _point,
final float  _theta 
)

NEEDS TO BE REIMPLEMENTED

void com.linxonline.mallet.physics.OBB.translate ( final float  _x,
final float  _y 
)

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables