KrisLibrary  1.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Math3D::Circle2D Struct Reference

A 2D circle class. More...

#include <Circle2D.h>

Public Member Functions

Real distance (const Point2D &v) const
 Note: this is actually the signed distance.
 
Real signedDistance (const Point2D &v) const
 
bool contains (const Point2D &v) const
 
bool contains (const Circle2D &s) const
 
bool withinDistance (const Point2D &v, Real dist) const
 
bool boundaryWithinDistance (const Point2D &v, Real dist) const
 
bool intersects (const Line2D &l, Real *t1=NULL, Real *t2=NULL) const
 
bool intersects (const Segment2D &s) const
 
bool intersects (const Plane2D &p, Segment2D &S) const
 
bool intersects (const Circle2D &c) const
 
bool boundaryIntersects (const Circle2D &c) const
 returns true if the boundary of this intersects the interior of c
 
bool boundaryIntersectsBoundary (const Circle2D &c) const
 returns true if the boundary of this intersects the boundary of c
 
bool Read (File &f)
 
bool Write (File &f) const
 
void getAABB (AABB2D &) const
 
bool intersects (const AABB2D &) const
 

Static Public Member Functions

static bool disksIntersect (const Point2D &ca, Real ra, const Point2D &cb, Real rb)
 
static bool diskCircleIntersect (const Point2D &ca, Real ra, const Point2D &cb, Real rb)
 
static bool circlesIntersect (const Point2D &ca, Real ra, const Point2D &cb, Real rb)
 

Public Attributes

Point2D center
 
Real radius
 

Detailed Description

A 2D circle class.

Represented by a center and a radius.

Most methods consider the circle as the solid disk. Methods that use the circle boundary have the prefix "boundary".


The documentation for this struct was generated from the following files: