barsuift.simLife.j3d.util
Class PointHelper

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

public final class PointHelper
extends java.lang.Object


Method Summary
static boolean areAlmostEquals(javax.vecmath.Point3d p1, javax.vecmath.Point3d p2)
           
static boolean areAlmostEquals(javax.vecmath.Point3d p1, javax.vecmath.Point3d p2, double xPrecision, double yPrecision, double zPrecision)
           
static boolean isPointWithinBounds(javax.vecmath.Point3d point, javax.vecmath.Point3d boundsStartPoint, javax.vecmath.Point3d boundsEndPoint)
           
static javax.vecmath.Point3d shiftPoint(javax.vecmath.Point3d point, double distanceMax)
          Shifts the X, Y, and Z coordinates between (-maxDistance, +maxDistance)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

shiftPoint

public static final javax.vecmath.Point3d shiftPoint(javax.vecmath.Point3d point,
                                                     double distanceMax)
Shifts the X, Y, and Z coordinates between (-maxDistance, +maxDistance)

Parameters:
point -
distanceMax -
Returns:

areAlmostEquals

public static final boolean areAlmostEquals(javax.vecmath.Point3d p1,
                                            javax.vecmath.Point3d p2)

areAlmostEquals

public static final boolean areAlmostEquals(javax.vecmath.Point3d p1,
                                            javax.vecmath.Point3d p2,
                                            double xPrecision,
                                            double yPrecision,
                                            double zPrecision)

isPointWithinBounds

public static final boolean isPointWithinBounds(javax.vecmath.Point3d point,
                                                javax.vecmath.Point3d boundsStartPoint,
                                                javax.vecmath.Point3d boundsEndPoint)


Copyright © 2010. All Rights Reserved.