4 #include "LocalCoordinates2D.h" 22 void set(
const AABB2D& bb);
25 void setTransformed(
const AABB2D& box,Real angle,
const Vector2& offset);
26 void setTransformed(
const Box2D& box,Real angle,
const Vector2& offset);
27 bool contains(
const Point2D& pt)
const;
28 Real distance(
const Point2D& pt)
const;
31 Real signedDistance(
const Point2D& pt)
const;
33 void getAABB(
AABB2D& bb)
const;
34 bool intersects(
const AABB2D& b)
const;
35 bool intersects(
const Box2D& b)
const;
36 bool intersects(
const Segment2D& s)
const;
37 bool intersects(
const Line2D& l)
const;
39 bool intersects(
const Circle2D& b)
const;
A 2D circle class.
Definition: Circle2D.h:16
A 2D triangle class.
Definition: Triangle2D.h:25
A 2D line class.
Definition: Line2D.h:19
A 2D boxThe box is the unit square [0,1]^2 set in the scaled local coordinate system. That is, one corner is at the origin, and it has dimensions [dims.x,dims.y] in the coordinates given by {xbasis,ybasis}.
Definition: Box2D.h:20
A 2D segment class.
Definition: Segment2D.h:17
Contains all the definitions in the Math3D package.
Definition: AnyGeometry.h:13
Definition: LocalCoordinates2D.h:37
A 2D vector class.
Definition: math3d/primitives.h:41
A 2D axis-aligned bounding box.
Definition: AABB2D.h:13