|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbarsuift.simLife.j3d.util.BarycentreHelper
public final class BarycentreHelper
| Method Summary | |
|---|---|
static javax.vecmath.Point3d |
getBarycentre(javax.vecmath.Point3d startPoint,
javax.vecmath.Point3d endPoint,
double distance)
Return a point on the line between startPoint and endPoint, located at the given distance from the startPoint. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.vecmath.Point3d getBarycentre(javax.vecmath.Point3d startPoint,
javax.vecmath.Point3d endPoint,
double distance)
The returned point is always on the line, between the 2 given points. If distance is too low (negative), then the start point is returned. If distance is too high, then the end point is returned.
startPoint - endPoint - distance -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||