MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / cross

Method cross

src/main/java/field/linalg/Vec3.java:317–321  ·  view source on GitHub ↗

Calculate the cross product of a and b and store the result in dest . @param a the first vec3 @param v the second vec3 @param dest will hold the result @return dest

(Vec3 a, Vec3 v, Vec3 dest)

Source from the content-addressed store, hash-verified

315 * @return dest
316 */
317 public static Vec3 cross(Vec3 a, Vec3 v, Vec3 dest) {
318 if (dest == null) dest = new Vec3();
319 dest.set(a.y * v.z - a.z * v.y, a.z * v.x - a.x * v.z, a.x * v.y - a.y * v.x);
320 return dest;
321 }
322
323 /**
324 * Return the dot product of a vector and another.

Callers 15

isMirroringMethod · 0.95
binormalForwardMethod · 0.95
binormalBackwardMethod · 0.95
binormalMethod · 0.95
normalForwardMethod · 0.95
normalBackwardMethod · 0.95
normalMethod · 0.95
osculatingMethod · 0.95
RMethod · 0.95
leftMethod · 0.95
viewMethod · 0.95

Calls 2

setMethod · 0.95
setMethod · 0.65

Tested by 1

selectMethod · 0.36