Class ApproximateConstructions_2
java.lang.Object
Jcg.geometry.kernel.ApproximateConstructions_2
- All Implemented Interfaces:
GeometricConstructions_2
Approximate geometric constructions for plane objects (points, segments, rays)
- Version:
- dec 2012
- Author:
- Luca Castelli Aleardi and Steve Oudot, Ecole Polytechnique (INF562)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncircumCenter(Point_2 p0, Point_2 p1, Point_2 p2) Returns the (approximate) circumcenter of input triangledistanceToSegment(Point_2 ps, Point_2 pe, Point_2 p) Returns the distance (non exact computation) of a point to a segmentReturn approximate intersection between segment s and ray rReturns approximate intersection between segments
-
Constructor Details
-
ApproximateConstructions_2
public ApproximateConstructions_2()
-
-
Method Details
-
circumCenter
Returns the (approximate) circumcenter of input triangle- Specified by:
circumCenterin interfaceGeometricConstructions_2- Parameters:
p0- ,p1,p2 the three vertices of the triangle
-
distanceToSegment
Returns the distance (non exact computation) of a point to a segment- Specified by:
distanceToSegmentin interfaceGeometricConstructions_2- Parameters:
ps- ,pe the start/end of the segmentp- the query point- Returns:
- the distance of p to [ps,pe]
-
intersect
Returns approximate intersection between segments- Specified by:
intersectin interfaceGeometricConstructions_2- Parameters:
s- ,t the 2 segments- Returns:
- approximate intersection point of s,t
-
intersect
Return approximate intersection between segment s and ray r- Specified by:
intersectin interfaceGeometricConstructions_2- Parameters:
s- the segmentr- the ray- Returns:
- the intersection of s and r
-