MCPcopy Create free account
hub / github.com/FlansMods/FlansMod / add

Method add

src/main/java/com/flansmod/common/vector/Vector2f.java:190–197  ·  view source on GitHub ↗

Add a vector to another vector and place the result in a destination vector. @param left The LHS vector @param right The RHS vector @param dest The destination vector, or null if a new vector is to be created @return the sum of left and right in dest

(Vector2f left, Vector2f right, Vector2f dest)

Source from the content-addressed store, hash-verified

188 * @return the sum of left and right in dest
189 */
190 public static Vector2f add(Vector2f left, Vector2f right, Vector2f dest) {
191 if (dest == null)
192 return new Vector2f(left.x + right.x, left.y + right.y);
193 else {
194 dest.set(left.x + right.x, left.y + right.y);
195 return dest;
196 }
197 }
198
199 /**
200 * Subtract a vector from another vector and place the result in a destination

Callers 15

addKillMessageMethod · 0.45
getContentListMethod · 0.45
loadSoundMethod · 0.45
UpdateFlashlightsMethod · 0.45
getModelMethod · 0.45
resetOffsetMethod · 0.45
addModelMethod · 0.45
addChildBoneMethod · 0.45
addVectorMethod · 0.45
addPolyMethod · 0.45
addGroupMethod · 0.45
AddTrailMethod · 0.45

Calls 1

setMethod · 0.65

Tested by

no test coverage detected