org.jbox2d.collision
Class OBB

java.lang.Object
  extended by org.jbox2d.collision.OBB

public class OBB
extends java.lang.Object

An oriented bounding box.


Field Summary
 Vec2 center
          The local centroid.
 Vec2 extents
          The half-widths.
 Mat22 R
          The rotation matrix.
 
Constructor Summary
OBB()
           
OBB(Mat22 _R, Vec2 _center, Vec2 _extents)
           
OBB(OBB copy)
           
 
Method Summary
 OBB clone()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

R

public Mat22 R
The rotation matrix.


center

public Vec2 center
The local centroid.


extents

public Vec2 extents
The half-widths.

Constructor Detail

OBB

public OBB(Mat22 _R,
           Vec2 _center,
           Vec2 _extents)

OBB

public OBB(OBB copy)

OBB

public OBB()
Method Detail

clone

public OBB clone()
Overrides:
clone in class java.lang.Object