Class ConvexClip
java.lang.Object
com.treemap.swing.originalfastvoronoi.convexClip.ConvexClip
-
Field Summary
FieldsModifier and TypeFieldDescriptionVertex List of the final intersection with the result of the computation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Computes the sign of the area of the triangle a,b,ccomputes the intersection of the egdes between ab and cdvoid
Start
(cVertexList list1, cVertexList list2)
-
Field Details
-
inters
Vertex List of the final intersection with the result of the computation
-
-
Constructor Details
-
ConvexClip
public ConvexClip()
-
-
Method Details
-
Start
- Parameters:
list1
- first polygon for the intersectionlist2
- second polygon for the intersection- Throws:
RuntimeException
- if one of the two polygons is not convex
-
AreaSign
Computes the sign of the area of the triangle a,b,c- Parameters:
a
-b
-c
-- Returns:
- returns sign of the are {0,1,-1}
-
intersect
computes the intersection of the egdes between ab and cd- Parameters:
a
-b
-c
-d
-- Returns:
- Infopoint with the flag of the intersection type and the point of the intersection
-