Package nu3a.math

Examples of nu3a.math.N3Vector3D.crossProduct()


    if (vertexes.size() > 2) {
      N3Point3D c = (N3Point3D) vertexes.elementAt(1);
      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

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.