MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / clip

Method clip

src/main/java/com/volmit/adapt/util/VectorMath.java:236–241  ·  view source on GitHub ↗
(Vector v, int decimals)

Source from the content-addressed store, hash-verified

234 }
235
236 public static Vector clip(Vector v, int decimals) {
237 v.setX(round(v.getX(), decimals));
238 v.setY(round(v.getY(), decimals));
239 v.setZ(round(v.getZ(), decimals));
240 return v;
241 }
242
243 public static Vector rotateVectorCC(Vector vec, Vector axis, double deg) {
244 double theta = Math.toRadians(deg);

Callers 1

rotateVectorCCMethod · 0.95

Calls 7

roundMethod · 0.95
setXMethod · 0.45
getXMethod · 0.45
setYMethod · 0.45
getYMethod · 0.45
setZMethod · 0.45
getZMethod · 0.45

Tested by

no test coverage detected