Package org.oscim.utils.geom
Class OBB2D
java.lang.Object
org.oscim.utils.geom.OBB2D
ported from http://www.flipcode.com/archives/2D_OBB_Intersection.shtml
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidset(float cx, float cy, float dx, float dy, float width, float height) voidsetNormalized(float cx, float cy, float vx, float vy, float width, float height, float dy)
-
Field Details
-
vec
public final float[] vec
-
-
Constructor Details
-
OBB2D
public OBB2D() -
OBB2D
public OBB2D(float cx, float cy, float width, float height, double acos, double asin) -
OBB2D
public OBB2D(float cx, float cy, float dx, float dy, float width, float height) -
OBB2D
public OBB2D(float cx, float cy, float width, float height)
-
-
Method Details
-
setNormalized
public void setNormalized(float cx, float cy, float vx, float vy, float width, float height, float dy) -
set
public void set(float cx, float cy, float dx, float dy, float width, float height) -
overlaps
-