Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Volume2D a(Volume2D v, double paramDouble) {
- double d1 = v.X - X;
- double d2 = v.Y - Y;
- double d3 = v.Z - Z;
- if (d1*d1 < 1)
- return null;
- double d4 = (paramDouble - X) / d1;
- if ((d4 < 0.0D) || (d4 > 1.0D))
- return null;
- return get(X + d1*d4, Y + d2*d4, Z + d3*d4);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement