Uses of Class
Jcg.geometry.Point_2
Packages that use Point_2
Package
Description
-
Uses of Point_2 in Jcg.geometry
Subclasses with type arguments of type Point_2 in Jcg.geometryModifier and TypeClassDescriptionclassClass representing a collection of points (in 2D)Classes in Jcg.geometry that implement interfaces with type arguments of type Point_2Modifier and TypeClassDescriptionclassClass representing a polyline in the plane (ordered sequence of points in 2D)Fields in Jcg.geometry declared as Point_2Methods in Jcg.geometry that return Point_2Modifier and TypeMethodDescriptionPoint_2[]PointCloud_2.boundingBox()Compute the bounding box (enclosing all points)static Point_2GeometricOperations_2.circumCenter(Point_2 p0, Point_2 p1, Point_2 p2) Deprecated.Returns the (approximate) circumcenter of input trianglestatic Point_2Deprecated.Returns approximate intersection between segment s and ray rstatic Point_2Deprecated.Returns approximate intersection between segmentsprivate static Point_2[]MesherOperations.intersectSegmentWithCircle(Point_2 a, Point_2 b, Point_2 center, double radius) This function is used by midpointOnUnitCircle(); it returns the intersection points between segment [a,b] and circle (center, radius), if they existstatic Point_2Point_2.linearCombination(Point_2[] points, Number[] coefficients) Return a new point defined by the linear combination of the input points, with respect to the given input coefficientsPointCloud_2.max(int d) Return the point with greatest coordinate value (in direction d)static Point_2static Point_2MesherOperations.midpointOnUnitCircle(Point_2[] e) Computes the points of the bisector of edge e that lie on the unit circle, and returns the one closest to ePointCloud_2.min(int d) Return the point with smallest coordinate value (in direction d)Ray_2.source()Segment_2.source()Segment_2.target()Segment_2.vertex(int i) Methods in Jcg.geometry with parameters of type Point_2Modifier and TypeMethodDescriptionvoidvoidstatic Point_2GeometricOperations_2.circumCenter(Point_2 p0, Point_2 p1, Point_2 p2) Deprecated.Returns the (approximate) circumcenter of input trianglestatic booleanDeprecated.Returns true if a, b and c lie on a same linePoint_2.distanceFrom(Point_2 p) static NumberGeometricOperations_2.distanceToSegment(Point_2 ps, Point_2 pe, Point_2 p) Deprecated.Returns the distance (non exact computation) of a point to a segmentstatic booleanMesherOperations.encroachesEdge(Point_2 p, Point_2[] e) Tests whether point p lies in the diametral circle of edge ebooleanbooleanLine_2.hasOnNegativeSide(Point_2 p) booleanLine_2.hasOnPositiveSide(Point_2 p) static booleanDeprecated.Tests if point p lies inside the circumcircle of triangle a,b,cprivate static Point_2[]MesherOperations.intersectSegmentWithCircle(Point_2 a, Point_2 b, Point_2 center, double radius) This function is used by midpointOnUnitCircle(); it returns the intersection points between segment [a,b] and circle (center, radius), if they existstatic booleanGeometricOperations_2.isCounterClockwise(Point_2 a, Point_2 b, Point_2 c) Deprecated.Returns true if a, b and c turn in counter-clockwise directionstatic booleanDeprecated.Returns true if point p lies on segment abstatic Point_2Point_2.linearCombination(Point_2[] points, Number[] coefficients) Return a new point defined by the linear combination of the input points, with respect to the given input coefficientsstatic Point_2static Point_2MesherOperations.midpointOnUnitCircle(Point_2[] e) Computes the points of the bisector of edge e that lie on the unit circle, and returns the one closest to estatic intGeometricOperations_2.orientation(Point_2 a, Point_2 b, Point_2 c) Deprecated.Returns the orientation of a, b and cConstructors in Jcg.geometry with parameters of type Point_2ModifierConstructorDescriptionConstructor parameters in Jcg.geometry with type arguments of type Point_2ModifierConstructorDescriptionPointCloud_2(ArrayList<Point_2> points) Create a new point cloud (a copy) from a collection of pointsPolyLine_2(ArrayList<Point_2> points) Create a new polyline (a copy of the list is created) from a collection of points -
Uses of Point_2 in Jcg.geometry.kernel
Methods in Jcg.geometry.kernel that return Point_2Modifier and TypeMethodDescriptionApproximateConstructions_2.circumCenter(Point_2 p0, Point_2 p1, Point_2 p2) Returns the (approximate) circumcenter of input triangleGeometricConstructions_2.circumCenter(Point_2 p0, Point_2 p1, Point_2 p2) Returns the (approximate) circumcenter of input triangleReturn approximate intersection between segment s and ray rReturns approximate intersection between segmentsReturns approximate intersection between segment s and ray rReturns approximate intersection between segmentsMethods in Jcg.geometry.kernel with parameters of type Point_2Modifier and TypeMethodDescriptionApproximateConstructions_2.circumCenter(Point_2 p0, Point_2 p1, Point_2 p2) Returns the (approximate) circumcenter of input triangleGeometricConstructions_2.circumCenter(Point_2 p0, Point_2 p1, Point_2 p2) Returns the (approximate) circumcenter of input trianglebooleanReturns true if a, b and c lie on a same linebooleanReturns true if a, b and c lie on a same linebooleanReturns true if a, b and c lie on a same line
Remark
Test is filtered: if precision bound epsilon is reached, then perform computation with infinite precision arithmetic (using the java.util.BigDecimal class)booleanReturns true if a, b and c lie on a same lineApproximateConstructions_2.distanceToSegment(Point_2 ps, Point_2 pe, Point_2 p) Returns the distance (non exact computation) of a point to a segmentGeometricConstructions_2.distanceToSegment(Point_2 ps, Point_2 pe, Point_2 p) Returns the distance (non exact computation) of a point to a segmentbooleanTests if point p lies inside the circumcircle of triangle a,b,cbooleanTests if point p lies inside the circumcircle of triangle a,b,cbooleanTests if point p lies inside the circumcircle of triangle a,b,cbooleanTests if point p lies inside the circumcircle of triangle a,b,cbooleanApproximatePredicates_2.isClockwise(Point_2 a, Point_2 b, Point_2 c) Returns true if a, b and c turn in clockwise directionbooleanExactPredicates_2.isClockwise(Point_2 a, Point_2 b, Point_2 c) Returns true if a, b and c turn in clockwise directionbooleanFilteredPredicates_2.isClockwise(Point_2 a, Point_2 b, Point_2 c) Returns true if a, b and c turn in clockwise direction
Remark
Test is filtered: if precision bound epsilon is reached, then perform computation with infinite precision arithmetic (using the java.util.BigDecimal class)booleanGeometricPredicates_2.isClockwise(Point_2 a, Point_2 b, Point_2 c) Returns true if a, b and c turn in clockwise direction.booleanApproximatePredicates_2.isCounterClockwise(Point_2 a, Point_2 b, Point_2 c) Returns true if a, b and c turn in counter-clockwise directionbooleanExactPredicates_2.isCounterClockwise(Point_2 a, Point_2 b, Point_2 c) Returns true if a, b and c turn in counter-clockwise directionbooleanFilteredPredicates_2.isCounterClockwise(Point_2 a, Point_2 b, Point_2 c) Returns true if a, b and c turn in counter-clockwise direction
Remark
Test is filtered: if precision bound epsilon is reached, then perform computation with infinite precision arithmetic (using the java.util.BigDecimal class)booleanGeometricPredicates_2.isCounterClockwise(Point_2 a, Point_2 b, Point_2 c) Returns true if a, b and c turn in counter-clockwise direction Warning: the result is false if the three points are collinearbooleanReturns true if point p lies on segment abbooleanReturns true if point p lies on segment abbooleanReturns true if point p lies on segment abbooleanReturns true if point p lies on segment abintApproximatePredicates_2.orientation(Point_2 a, Point_2 b, Point_2 c) Returns the orientation of a, b and cintExactPredicates_2.orientation(Point_2 a, Point_2 b, Point_2 c) Returns the orientation of a, b and cintFilteredPredicates_2.orientation(Point_2 a, Point_2 b, Point_2 c) Returns the orientation of a, b and cintGeometricPredicates_2.orientation(Point_2 a, Point_2 b, Point_2 c) Returns the orientation of a, b and c -
Uses of Point_2 in Jcg.mesh
Modifier and TypeMethodDescriptionstatic Point_2[]MeshBuilder.Point3DToPoint2D(Point_3[] points) Convert an array of 3D points to an array of 2D points (by orthogonal projection on the z=0 hyperplane)Modifier and TypeMethodDescriptionstatic Polyhedron_3<Point_2> MeshLoader.getPlanarMesh(String filename) Load a planar mesh embedded in 2D (Polyhedron_3) from an .off file It uses a shared vertex representation as intermediate data structure static TriangulationDS_2<Point_2> Triangulations_IO.getPlaneTriangulationFromFile(String filename) Create a Triangle Data Structure for a given plane triangulation (from a file).static Polyhedron_3<Point_2> MeshLoader.getRandomPlanarTriangulation(int n) Generating a random planar triangulation of size n+2 (with uniform distribution)Modifier and TypeMethodDescriptionstatic Collection<Point_2[]> Triangulations_IO.getTriangles(TriangulationDS_2<Point_2> mesh) Return the (geometric) triangles of a 2D triangulation (useful for 2D rendering)static voidTriangulations_IO.writeToFile(Collection<Point_2> vertices, Collection<Point_2[]> faces, String filename) Output triangulation (edges or triangles) to OFF file -
Uses of Point_2 in Jcg.meshgeneration
Fields in Jcg.meshgeneration with type parameters of type Point_2Modifier and TypeFieldDescriptionRandomSamplingTriangulations.outerFaceRandomSamplingTriangulations.polyRandomSamplingTriangulations.rootEdgeMethods in Jcg.meshgeneration that return types with arguments of type Point_2Modifier and TypeMethodDescriptionRandomSamplingTriangulations.addRoot()RandomSamplingTriangulations.newFace()RandomSamplingTriangulations.newHalfedge()RandomSamplingTriangulations.newVertex()Method parameters in Jcg.meshgeneration with type arguments of type Point_2Modifier and TypeMethodDescription(package private) void(package private) intRandomSamplingTriangulations.decodeSubtree(Halfedge<Point_2> nodeEdge, int i) (package private) static booleanRandomSamplingTriangulations.isExternal(Halfedge<Point_2> h) (package private) static booleanRandomSamplingTriangulations.isInternal(Halfedge<Point_2> h) -
Uses of Point_2 in Jcg.pointLocation
Methods in Jcg.pointLocation that return types with arguments of type Point_2Modifier and TypeMethodDescriptionPlanarPointLocation.locatePoint(Polyhedron_3<Point_2> triangulation, Point_2 queryPoint) Compute and return the face (an incident half-edge) containing the query pointMethods in Jcg.pointLocation with parameters of type Point_2Modifier and TypeMethodDescriptionPlanarPointLocation.locatePoint(Polyhedron_3<Point_2> triangulation, Point_2 queryPoint) Compute and return the face (an incident half-edge) containing the query pointMethod parameters in Jcg.pointLocation with type arguments of type Point_2Modifier and TypeMethodDescriptionPlanarPointLocation.locatePoint(Polyhedron_3<Point_2> triangulation, Point_2 queryPoint) Compute and return the face (an incident half-edge) containing the query point -
Uses of Point_2 in Jcg.triangulations2D
Fields in Jcg.triangulations2D declared as Point_2Modifier and TypeFieldDescription(package private) Point_2Triangulation_2.BoundingBox.a(package private) Point_2Triangulation_2.BoundingBox.b(package private) Point_2Triangulation_2.BoundingBox.c(package private) Point_2Triangulation_2.BoundingBox.dprivate Point_2QuadEdge.origFields in Jcg.triangulations2D with type parameters of type Point_2Modifier and TypeFieldDescriptionprotected TriangulationDSFace_2<Point_2> Triangulation_2.startingFaceTriangulation_2.triMethods in Jcg.triangulations2D that return Point_2Modifier and TypeMethodDescriptionQuadEdge.dest()Returns the destination vertex of the QuadEdge.Delaunay_2.dual(TriangulationDSFace_2<Point_2> f) Outputs the Voronoi vertex dual to face f.QuadEdge.orig()Returns the origin vertex of the QuadEdge.Methods in Jcg.triangulations2D that return types with arguments of type Point_2Modifier and TypeMethodDescriptionDelaunay_2.constraintEdges()Computes and returns the list of constraint edges.Triangulation_2.convexHullEdges()Computes and returns the collection of all edges on the convex hull (collects only one HalfedgeHandle per geometric edge).Triangulation_2.finiteEdges()Computes and returns the collection of all finite edges in the triangulation (that is, all edges connecting vertices in the interior of the bounding box).Triangulation_2.finiteFaces()Computes and returns the collection of all finite faces of the triangulation (that is, faces lying in the interior of the bounding box).Triangulation_2.finiteVertices()Computes and returns the collection of all finite vertices of the triangulation (that is, vertices lying in the interior of the bounding box).Inserts point p in the Delaunay triangulation and returns the newly created vertexInserts a constraint edge in the Delaunay triangulation.Inserts point p in the triangulation and returns the newly created vertexLocates point p in the triangulation and returns a triangle containing p.Methods in Jcg.triangulations2D with parameters of type Point_2Modifier and TypeMethodDescriptionInserts point p in the Delaunay triangulation and returns the newly created vertexInserts a constraint edge in the Delaunay triangulation.Inserts point p in the triangulation and returns the newly created vertexbooleanTriangulation_2.isInfinite(Point_2 p) Returns true if Point p is infinite, i.e.Locates point p in the triangulation and returns a triangle containing p.static QuadEdgeCreates a new QuadEdge, setting next and dual fields to default null values.voidSets origin vertex of QuadEdge.protected voidTriangulation_2.updateBoundingBox(Point_2 p) Method parameters in Jcg.triangulations2D with type arguments of type Point_2Modifier and TypeMethodDescriptionDelaunay_2.dual(TriangulationDSFace_2<Point_2> f) Outputs the Voronoi vertex dual to face f.booleanTriangulation_2.isInfinite(HalfedgeHandle<Point_2> e) Returns true if Edge e is infinite, i.e.booleanTriangulation_2.isInfinite(TriangulationDSFace_2<Point_2> f) Returns true if Face f is infinite, i.e.booleanTriangulation_2.isInfinite(TriangulationDSVertex_2<Point_2> v) Returns true if Vertex v is infinite, i.e.Constructors in Jcg.triangulations2D with parameters of type Point_2 -
Uses of Point_2 in Jcg.viewer
Methods in Jcg.viewer that return Point_2Modifier and TypeMethodDescriptionPoint_2[]Draw2D.computeBoundingBox()Compute the scale factor (depending on the max distance of the point set)Methods in Jcg.viewer with parameters of type Point_2Modifier and TypeMethodDescriptionvoidDraw2D.drawBoundingBox(Point_2[] box) Draw a bounding box (a rectangle)abstract voidDraw a vertexabstract voidDraw2D.drawSegment(Point_2 p, Point_2 q) Draw a segment between two pointsabstract voidResize the frame according to the window coordinates Input points are the left bottom and right top points of the window -
Uses of Point_2 in Jcg.viewer.old
Methods in Jcg.viewer.old with parameters of type Point_2Modifier and TypeMethodDescriptionvoidFenetre.addColoredSegment(Point_2 p1, Point_2 p2, Color c) Draw a segment with a given colorvoidFenetre.addFatSegment(Point_2 p1, Point_2 p2) voidDraw a text label at a given positionvoidAdd a 2D point to the windowvoidvoidFenetre.addSegment(Point_2 p1, Point_2 p2) Add a segmentvoidFenetre.addTriangle(Point_2[] points) Add the three segments of a triangleMethod parameters in Jcg.viewer.old with type arguments of type Point_2Modifier and TypeMethodDescriptionvoidFenetre.addPoints(Collection<Point_2> points) Add a collection of 2D pointsvoidFenetre.addPolyhedronColoredEdges(Polyhedron_3<Point_2> polyhedron, Color[] colors) voidFenetre.addPolyhedronEdges(Polyhedron_3<Point_2> polyhedron) Draw all halfedges of a planar Polyhedron (half-edge DS)