Package nu3a.math

Examples of nu3a.math.N3Vector3D.normalize()


      N3Point3D e1 = (N3Point3D) vertexes.elementAt(0);
      N3Point3D e2 = (N3Point3D) vertexes.elementAt(2);
      normal = new N3Vector3D(e2.x - c.x, e2.y - c.y, e2.z - c.z);
      normal.crossProduct(new N3Vector3D(e1.x - c.x, e1.y - c.y, e1.z
          - c.z));
      normal.normalize();
    }
    return normal;
  }

  /**
 
View Full Code Here


    y = new N3Vector3D(top.x, top.y, top.z);
    x = N3Vector3D.crossProduct(y, z);
    y = N3Vector3D.crossProduct(z, x);

    x.normalize();
    y.normalize();

    m = targetMatrix.getMatrix();

    m[0] = x.x;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.