public class Line
extends java.lang.Object
| Constructor and Description |
|---|
Line() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
closestDistance(Line other,
Vec3 dstPointOnThis,
Vec3 dstPointOnOther)
http://softsurfer.com/Archive/algorithm_0106/algorithm_0106.htm
|
float |
distance(Vec3 pt)
Calculate the distance (oriented) between the point and this
Line. |
float |
distanceAlongLine(Vec3 point) |
Vec3 |
getDirection() |
Vec3 |
getOrigin() |
void |
intersection(Plane p1,
Plane p2)
Set this
Line to be the intersection of the two planes |
Vec3 |
project(Vec3 dst,
Vec3 src) |
Line |
setDirection(Vec3 origin,
Vec3 direction) |
Line |
setPoints(Vec3 point1,
Vec3 point2) |
public Line()
setPoints(Vec3, Vec3),
setDirection(Vec3, Vec3)public final Vec3 getOrigin()
public final Vec3 getDirection()
public final float distance(Vec3 pt)
Line.pt - a pointLinepublic final float distanceAlongLine(Vec3 point)
public final boolean closestDistance(Line other, Vec3 dstPointOnThis, Vec3 dstPointOnOther)
public final void intersection(Plane p1, Plane p2)
Line to be the intersection of the two planesBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com