1 #ifndef MATH3D_CIRCLE2D_H 2 #define MATH3D_CIRCLE2D_H 20 Real signedDistance(
const Point2D& v)
const;
21 bool contains(
const Point2D& v)
const;
22 bool contains(
const Circle2D& s)
const;
23 bool withinDistance(
const Point2D& v, Real dist)
const;
24 bool boundaryWithinDistance(
const Point2D& v, Real dist)
const;
25 bool intersects(
const Line2D& l, Real* t1=NULL, Real* t2=NULL)
const;
26 bool intersects(
const Segment2D& s)
const;
28 bool intersects(
const Circle2D& c)
const;
34 bool Write(
File& f)
const;
36 void getAABB(
AABB2D&)
const;
37 bool intersects(
const AABB2D&)
const;
39 static bool disksIntersect(
const Point2D& ca,Real ra,
const Point2D& cb,Real rb);
40 static bool diskCircleIntersect(
const Point2D& ca,Real ra,
const Point2D& cb,Real rb);
41 static bool circlesIntersect(
const Point2D& ca,Real ra,
const Point2D& cb,Real rb);
bool boundaryIntersectsBoundary(const Circle2D &c) const
returns true if the boundary of this intersects the boundary of c
Definition: geometry2d.cpp:741
A 2D circle class.
Definition: Circle2D.h:16
A 2D line class.
Definition: Line2D.h:19
bool boundaryIntersects(const Circle2D &c) const
returns true if the boundary of this intersects the interior of c
Definition: geometry2d.cpp:736
A 2D segment class.
Definition: Segment2D.h:17
Contains all the definitions in the Math3D package.
Definition: AnyGeometry.h:13
A 2D plane classRepresents plane with a normal and offset such that x on the plane satisfy dot(normal...
Definition: Plane2D.h:20
Real distance(const Point2D &v) const
Note: this is actually the signed distance.
Definition: geometry2d.cpp:653
A 2D vector class.
Definition: math3d/primitives.h:41
A 2D axis-aligned bounding box.
Definition: AABB2D.h:13
A cross-platform class for reading/writing binary data.
Definition: File.h:47