modm API documentation
modm::Circle2D< T > Class Template Reference

Circle. More...

#include <modm/math/geometry/circle_2d.hpp>

Public Member Functions

 Circle2D (const Vector< T, 2 > &center, T radius)
 
const Vector< T, 2 > & getCenter () const
 
void setCenter (const Vector< T, 2 > &point)
 
getRadius () const
 
void setRadius (T radius)
 
bool intersects (const Polygon2D< T > &polygon) const
 Check if a intersection exists.
 
bool getIntersections (const Circle2D &other, PointSet2D< T > &intersections) const
 Calculate intersection point(s) More...
 
bool getIntersections (const Line2D< T > &line, PointSet2D< T > &intersections) const
 Calculate intersection point(s) More...
 
bool getIntersections (const LineSegment2D< T > &line, PointSet2D< T > &intersections) const
 

Protected Attributes

Vector< T, 2 > center
 
radius
 

Friends

class Line2D< T >
 
class LineSegment2D< T >
 

Detailed Description

template<typename T>
class modm::Circle2D< T >

Circle.

Author
Fabian Greif

Member Function Documentation

template<typename T >
bool modm::Circle2D< T >::getIntersections ( const Circle2D< T > &  other,
PointSet2D< T > &  intersections 
) const

Calculate intersection point(s)

Parameters
[in]otherOther Circle
[out]intersectionsIntersection points
See also
http://local.wasp.uwa.edu.au/~pbourke/geometry/2circle/
template<typename T >
bool modm::Circle2D< T >::getIntersections ( const Line2D< T > &  line,
PointSet2D< T > &  intersections 
) const

Calculate intersection point(s)

Parameters
[in]lineOther line
[out]intersectionsIntersection points
See also
Line2D::intersect()

The documentation for this class was generated from the following file: