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

Method transform

src/main/java/field/linalg/Mat4.java:352–356  ·  view source on GitHub ↗

Transform/multiply the given vector by this matrix and store the result in dest . @param v the vector to transform @param dest will contain the result @return this

(Mat4 m, Vec4 v, Vec4 dest)

Source from the content-addressed store, hash-verified

350 * @return this
351 */
352 public static Vec4 transform(Mat4 m, Vec4 v, Vec4 dest) {
353 if (dest == null) dest = new Vec4();
354 v.mul(m, dest);
355 return dest;
356 }
357
358 /**
359 * Transform/multiply the given vector by this matrix and store the result in <code>dest</code>.

Callers 1

cameraMethod · 0.95

Calls 1

mulMethod · 0.45

Tested by

no test coverage detected