barsuift.simLife.j3d.util
Class BarycentreHelper

java.lang.Object
  extended by barsuift.simLife.j3d.util.BarycentreHelper

public final class BarycentreHelper
extends java.lang.Object


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

getBarycentre

public 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.

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.

Parameters:
startPoint -
endPoint -
distance -
Returns:


Copyright © 2010. All Rights Reserved.