Class Line2D
java.lang.Object
com.gaia3d.basic.geometry.tessellator.Line2D
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
intersectionWithLine
(Line2D line, org.joml.Vector2d intersectionPoint, double error) boolean
isParallel
(Line2D line) boolean
pointBelongsToLine
(org.joml.Vector2d point, double error) void
setBy2Points
(org.joml.Vector2d point1, org.joml.Vector2d point2)
-
Field Details
-
point
public org.joml.Vector2d point -
direction
public org.joml.Vector2d direction
-
-
Constructor Details
-
Line2D
public Line2D(org.joml.Vector2d point, org.joml.Vector2d direction)
-
-
Method Details
-
setBy2Points
public void setBy2Points(org.joml.Vector2d point1, org.joml.Vector2d point2) -
isParallel
-
pointBelongsToLine
public boolean pointBelongsToLine(org.joml.Vector2d point, double error) -
intersectionWithLine
-