|
| | TwinDisc2 (const Vector2 &, const Vector2 &, const double &) |
| | Create twin discs.
|
| bool | Inside (const Vector2 &) const |
| | Test if a point is inside the union of the discs.
|
| double | R (const Vector2 &) const |
| | Compute the squared Euclidean distance to the union of the discs.
|
| double | Signed (const Vector2 &) const |
| | Compute the signed Euclidean distance to the union of two discs.
|
| bool | Intersect (const TwinDisc2 &) const |
| | Test if the twin discs intersect.
|
| bool | Intersect (const Circle2 &) const |
| | Test if the twin discs intersect a circle.
|
| double | Area () const |
| | Compute the area.
|
|
Box2 | GetBox () const |
| | Compute the bounding box.
|
|
OrientedBox2 | GetOrientedBox () const |
| | Compute the oriented bounding box.
|
| void | Draw (QGraphicsScene &, const QPen &=QPen(), const QBrush &=QBrush()) const |
| | Draw the union of two discs.
|
Twin discs in the plane with the same radius.
| double TwinDisc2::Signed |
( |
const Vector2 & | p | ) |
const |
Compute the signed Euclidean distance to the union of two discs.
The exact signed Euclidean distance differs from the minimum of the signed distance between two discs. The distance is negative inside the union; outside, it is the minimum of the distances to the two discs. Inside, the closest boundary point is either on the arc of the closest disc, or one of the intersection points of the two circles. Disjoint discs and discs with the same center are handled as a single disc.
- Parameters
-