congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Vector3D32.cross
Code IndexAdd Tabnine to your IDE (free)

How to use
cross
method
in
us.ihmc.euclid.tuple3D.Vector3D32

Best Java code snippets using us.ihmc.euclid.tuple3D.Vector3D32.cross (Showing top 1 results out of 315)

origin: us.ihmc/ihmc-graphics-description

private static Vector3D32[] findNormalsPerFace(int[] indices, Point3D32[] vertices)
{
 Vector3D32[] normalsPerFace = new Vector3D32[indices.length / 3]; // Abuse integer division.
 Vector3D32 firstVector = new Vector3D32();
 Vector3D32 secondVector = new Vector3D32();
 Point3D32[] faceVertices = new Point3D32[3];
 for (int face = 0; face < normalsPerFace.length; face++)
 {
   normalsPerFace[face] = new Vector3D32();
   for (int i = 0; i < faceVertices.length; i++)
   {
    faceVertices[i] = vertices[indices[face * 3 + i]];
   }
   firstVector.set(faceVertices[2]);
   firstVector.sub(faceVertices[0]);
   secondVector.set(faceVertices[2]);
   secondVector.sub(faceVertices[1]);
   normalsPerFace[face].cross(firstVector, secondVector);
   normalsPerFace[face].normalize();
 }
 return normalsPerFace;
}
us.ihmc.euclid.tuple3DVector3D32cross

Popular methods of Vector3D32

  • <init>
  • getX32
  • getY32
  • getZ32
  • getX
  • getY
  • getZ
  • normalize
  • setX
  • setY
  • setZ
  • set
  • setZ,
  • set,
  • add,
  • applyInverseTransform,
  • applyTransform,
  • containsNaN,
  • epsilonEquals,
  • geometricallyEquals,
  • hashCode

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • String (java.lang)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JButton (javax.swing)
  • JComboBox (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now