public class ApproximateConstructions_2 extends java.lang.Object implements GeometricConstructions_2
Constructor and Description |
---|
ApproximateConstructions_2() |
Modifier and Type | Method and Description |
---|---|
Point_2 |
circumCenter(Point_2 p0,
Point_2 p1,
Point_2 p2)
Returns the (approximate) circumcenter of input triangle
|
java.lang.Number |
distanceToSegment(Point_2 ps,
Point_2 pe,
Point_2 p)
Returns the distance (non exact computation) of a point to a segment
|
Point_2 |
intersect(Segment_2 s,
Ray_2 r)
Return approximate intersection between segment s and ray r
|
Point_2 |
intersect(Segment_2 s,
Segment_2 t)
Returns approximate intersection between segments
|
public Point_2 circumCenter(Point_2 p0, Point_2 p1, Point_2 p2)
circumCenter
in interface GeometricConstructions_2
p0,p1,p2
- the three vertices of the trianglepublic java.lang.Number distanceToSegment(Point_2 ps, Point_2 pe, Point_2 p)
distanceToSegment
in interface GeometricConstructions_2
ps,pe
- the start/end of the segmentp
- the query pointpublic Point_2 intersect(Segment_2 s, Segment_2 t)
intersect
in interface GeometricConstructions_2
s,t
- the 2 segmentspublic Point_2 intersect(Segment_2 s, Ray_2 r)
intersect
in interface GeometricConstructions_2
s
- the segmentr
- the ray