barsuift.simLife.j3d.util
Class NormalHelper

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

public final class NormalHelper
extends java.lang.Object


Method Summary
static javax.vecmath.Vector3f computeNormal(javax.vecmath.Point3d p1, javax.vecmath.Point3d p2, javax.vecmath.Point3d p3)
          Computes the normal vector based on the surface defined by the 3 given points
static javax.vecmath.Vector3f computeNormal(javax.vecmath.Point3f p1, javax.vecmath.Point3f p2, javax.vecmath.Point3f p3)
          Computes the normal vector based on the surface defined by the 3 given points
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeNormal

public static javax.vecmath.Vector3f computeNormal(javax.vecmath.Point3f p1,
                                                   javax.vecmath.Point3f p2,
                                                   javax.vecmath.Point3f p3)
Computes the normal vector based on the surface defined by the 3 given points

Parameters:
p1 - first point
p2 - second point
p3 - third point

computeNormal

public static javax.vecmath.Vector3f computeNormal(javax.vecmath.Point3d p1,
                                                   javax.vecmath.Point3d p2,
                                                   javax.vecmath.Point3d p3)
Computes the normal vector based on the surface defined by the 3 given points

Parameters:
p1 - first point
p2 - second point
p3 - third point


Copyright © 2010. All Rights Reserved.