Calculate the cross product of this and the given Vector
(Vec3i vec)
| 83 | * Calculate the cross product of this and the given Vector |
| 84 | */ |
| 85 | public Vec3i crossProduct(Vec3i vec) |
| 86 | { |
| 87 | return new Vec3i(this.getY() * vec.getZ() - this.getZ() * vec.getY(), this.getZ() * vec.getX() - this.getX() * vec.getZ(), this.getX() * vec.getY() - this.getY() * vec.getX()); |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * Calculate squared distance to the given coordinates |