- /*
- * public int orientation;
- *
- * public static final int ORIENTATION_RIGHT = 0;
- *
- * public static final int ORIENTATION_LEFT = 1;
- *
- * public static final int ORIENTATION_DOWN = 2;
- *
- * public static final int ORIENTATION_UP = 3;
- *
- * public static final int ORIENTATION_FORWARD = 4;
- *
- * public static final int ORIENTATION_BACK = 5;
- *
- * public static final String orientations[] = { "RIGHT", "LEFT", "DOWN",
- * "UP", "FORWARD", "BACK" };
- */
-
- public Ray(final double X, final double Y, final double Z, final double Xp,
- final double Yp, final double Zp) {
- x = X;
- y = Y;
- z = Z;
- xp = Xp;
- yp = Yp;
- zp = Zp;
- // calculateOrientation();
+ public Ray(Point3D origin, Point3D direction) {
+ this.origin = origin;
+ this.direction = direction;