类 Line
- java.lang.Object
-
- org.meteoinfo.chart.jogl.pipe.Line
-
public class Line extends java.lang.Objectclass to construct a line with parametric form Line = p + aV (a point and a direction vector on the line) ported from C++ code by Song Ho Ahn (song.ahn@gmail.com)
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.joml.Vector3fgetDirection()Get line directionorg.joml.Vector3fgetPoint()Get line pointorg.joml.Vector3fintersect(Line line)find the intersection point with the other line.booleanisIntersected(Line line)determine if it intersects with the other line
-
-
-
方法详细资料
-
getDirection
public org.joml.Vector3f getDirection()
Get line direction- 返回:
- Line direction
-
getPoint
public org.joml.Vector3f getPoint()
Get line point- 返回:
- Line point
-
intersect
public org.joml.Vector3f intersect(Line line)
find the intersection point with the other line. If no intersection, return a point with NaN in it.- 参数:
line- Other line- 返回:
- Intersect point
-
isIntersected
public boolean isIntersected(Line line)
determine if it intersects with the other line- 参数:
line- Other line- 返回:
- Intersect or not
-
-