Class OBB2D

java.lang.Object
org.oscim.utils.geom.OBB2D

public class OBB2D extends Object
ported from http://www.flipcode.com/archives/2D_OBB_Intersection.shtml
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Vector math for one array
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final float[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    OBB2D(float cx, float cy, float width, float height)
     
    OBB2D(float cx, float cy, float width, float height, double acos, double asin)
     
    OBB2D(float cx, float cy, float dx, float dy, float width, float height)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    overlaps(OBB2D other)
     
    void
    set(float cx, float cy, float dx, float dy, float width, float height)
     
    void
    setNormalized(float cx, float cy, float vx, float vy, float width, float height, float dy)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public boolean overlaps(OBB2D other)