(Vector v, int decimals)
| 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); |