/** * Returns the position of this bounding sphere as a point. * @param center a Point to receive the center of the bounding sphere */ @Override public void getCenter(Point3d center) { center.set(this.center); }
/** * Retrieves the user head object's left eye position and places * that value in the specified object. * @param position the object that will receive the left-eye's position * in head coordinates */ public void getLeftEyePosition(Point3d position) { position.set(this.leftEyePosition); }
/** * Retrieves the user head object's right eye position and places * that value in the specified object. * @param position the object that will receive the right-eye's position * in head coordinates */ public void getRightEyePosition(Point3d position) { position.set(this.rightEyePosition); }
/** * Retrieves the position of the user-specified, manual right eye * in image-plate * coordinates and copies that value into the object provided. * @param position the object that will receive the position */ public void getRightManualEyeInImagePlate(Point3d position) { position.set(this.rightManualEyeInImagePlate); }
/** * Retrieves the user head object's right ear position and places * that value in the specified object. * @param position the object that will receive the right-ear's position * in head coordinates */ public void getRightEarPosition(Point3d position) { position.set(this.rightEarPosition); }
/** * Retrieves the position of the user-specified, manual left eye * in coexistence * coordinates and copies that value into the object provided. * @param position the object that will receive the position * * @since Java 3D 1.2 */ public void getLeftManualEyeInCoexistence(Point3d position) { position.set(leftManualEyeInCoexistence); }
/** * Gets the upper corner of this bounding box. * @param p1 a Point to receive the upper corner of the bounding box */ public void getUpper(Point3d p1) { p1.set(upper); }
/** * Get the sensor's hotspot in this sensor's coordinate system. * @param hotspot the variable to receive the sensor's hotspot */ public void getHotspot(Point3d hotspot){ hotspot.set(this.hotspot); }
/** * Gets the end point of this PickConeSegment. * @param end the Point3d object into which the end point * will be copied. */ public void getEnd(Point3d end) { end.set(this.end); }
/** * Copies the global maximum point into the specified Point3d. * * @param p */ public void getGlobalMaxPoint(final Point3d p) { p.set(globalMax); }
/** * Constructs and initializes a PhysicalBody object from the * specified parameters. * @param leftEyePosition the user's left eye position * @param rightEyePosition the user's right eye position */ public PhysicalBody(Point3d leftEyePosition, Point3d rightEyePosition) { this.leftEyePosition.set(leftEyePosition); this.rightEyePosition.set(rightEyePosition); initHeadToHeadTracker(); }
/** * Sets the parameters of this PickCylinderSegment to the specified values. * @param origin the origin point of the cylindrical segment. * @param end the end point of the cylindrical segment. * @param radius the radius of the cylindrical segment. */ public void set(Point3d origin, Point3d end, double radius) { this.origin.set(origin); this.end.set(end); this.radius = radius; calcDirection(); // calculate direction, based on start and end }
/** * Sets the parameters of this PickCone to the specified values. * @param origin the origin of the cone * @param end the end of the cone * @param spreadAngle the spread angle of the cone in radians */ public void set(Point3d origin, Point3d end, double spreadAngle) { this.origin.set(origin); this.end.set (end); this.spreadAngle = spreadAngle; calcDirection(); // calculate direction, based on start and end }
/** * Sets the user head object's left eye position. * @param position the left-eye's position in head coordinates */ public void setLeftEyePosition(Point3d position) { synchronized(this) { this.leftEyePosition.set(position); pbDirtyMask |= View.PB_EYE_POSITION_DIRTY; } notifyUsers(); }
/** * Sets the parameters of this PickCone to the specified values. * @param origin the origin of the cone * @param direction the direction of the cone * @param spreadAngle the spread angle of the cone in radians */ public void set(Point3d origin, Vector3d direction, double spreadAngle) { this.origin.set(origin); this.direction.set(direction); this.spreadAngle = spreadAngle; }
/** * Sets the lower corner of this bounding box. * @param p1 a Point defining the new lower corner of the bounding box */ public void setLower(Point3d p1) { lower.set(p1); updateBoundsStates(); }
/** * Sets the upper corner of this bounding box. * @param xmax max x value of bounding box * @param ymax max y value of bounding box * @param zmax max z value of bounding box */ public void setUpper(double xmax, double ymax, double zmax) { upper.set(xmax, ymax, zmax); updateBoundsStates(); }
/** * Sets the parameters of this PickCylinderRay to the specified values. * @param origin the origin of the cylindrical ray. * @param direction the direction of the cylindrical ray. * @param radius the radius of the cylindrical ray. */ public void set(Point3d origin, Vector3d direction, double radius) { this.origin.set(origin); this.direction.set(direction); this.radius = radius; }
private void cacheEyePosCoexistenceRelative(Point3d leftManualEyeInCoexistence, Point3d rightManualEyeInCoexistence) { tPnt1.set(leftManualEyeInCoexistence); viewCache.coexistenceToTrackerBase.transform(tPnt1); screenViewCache.trackerBaseToImagePlate.transform(tPnt1); tPnt1.add(coexistenceCenter); tPnt2.set(rightManualEyeInCoexistence); viewCache.coexistenceToTrackerBase.transform(tPnt2); screenViewCache.trackerBaseToImagePlate.transform(tPnt2); tPnt2.add(coexistenceCenter); cacheEyePosScreenRelative(tPnt1, tPnt2); }