| Modifier and Type | Field and Description |
|---|---|
| private Vec3d | |
| pack-priv static final double | |
| private static final double | |
| private double | |
| private double | |
| private Vec3d |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | |
| public static PickRay | computeParallelPickRay(double x, double y, double viewHeight, Affine3D cameraTransform, double nearClip, double farClip, PickRay pickRay)
|
| public static PickRay | computePerspectivePickRay(double x, double y, boolean fixedEye, double viewWidth, double viewHeight, double fieldOfViewRadians, boolean verticalFieldOfView, Affine3D cameraTransform, double nearClip, double farClip, PickRay pickRay)
|
| public PickRay | |
| public double | |
| public Vec3d | |
| public Vec3d | |
| public double | |
| public double | |
| public Vec3d | |
| public Vec3d | |
| public void | |
| private static boolean | |
| public PickRay | |
| public Point2D | projectToZeroPlane(BaseTransform
the inverse of the model transform into which the
ray is to be projected inversetx, boolean true if the projection is happening in perspective perspective, Vec3d a temporary tmpvec, Point2D Vec3d object for internal use
(may be null)a ret)Point2D object for storing the return value,
or null if a new object should be returned.Project the ray through the specified (inverted) transform and onto the Z=0 plane of the resulting coordinate system. |
| public final void | |
| public final void | |
| public void | |
| public void | setDirection(double
the direction X magnitude x, double the direction Y magnitude y, double the direction Z magnitude z)Sets the direction of the pick ray. |
| public void | |
| public void | setOrigin(double
the origin X coordinate x, double the origin Y coordinate y, double the origin Z coordinate z)Sets the origin of the pick ray in world coordinates. |
| public void | |
| public String | |
| public void |
| direction | back to summary |
|---|---|
| private Vec3d direction | |
| EPS | back to summary |
|---|---|
| pack-priv static final double EPS | |
| EPSILON_ABSOLUTE | back to summary |
|---|---|
| private static final double EPSILON_ABSOLUTE | |
| farClip | back to summary |
|---|---|
| private double farClip | |
| nearClip | back to summary |
|---|---|
| private double nearClip | |
| origin | back to summary |
|---|---|
| private Vec3d origin | |
| PickRay | back to summary |
|---|---|
| public PickRay() | |
| PickRay | back to summary |
|---|---|
| public PickRay(Vec3d origin, Vec3d direction, double nearClip, double farClip) | |
| PickRay | back to summary |
|---|---|
| public PickRay(double x, double y, double z, double nearClip, double farClip) | |
| almostZero | back to summary |
|---|---|
| pack-priv static boolean almostZero(double a) | |
| computeParallelPickRay | back to summary |
|---|---|
| public static PickRay computeParallelPickRay(double x, double y, double viewHeight, Affine3D cameraTransform, double nearClip, double farClip, PickRay pickRay) | |
| computePerspectivePickRay | back to summary |
|---|---|
| public static PickRay computePerspectivePickRay(double x, double y, boolean fixedEye, double viewWidth, double viewHeight, double fieldOfViewRadians, boolean verticalFieldOfView, Affine3D cameraTransform, double nearClip, double farClip, PickRay pickRay) | |
| copy | back to summary |
|---|---|
| public PickRay copy() | |
| distance | back to summary |
|---|---|
| public double distance(Vec3d iPnt) | |
| getDirection | back to summary |
|---|---|
| public Vec3d getDirection(Vec3d rv) | |
| getDirectionNoClone | back to summary |
|---|---|
| public Vec3d getDirectionNoClone() | |
| getFarClip | back to summary |
|---|---|
| public double getFarClip() | |
| getNearClip | back to summary |
|---|---|
| public double getNearClip() | |
| getOrigin | back to summary |
|---|---|
| public Vec3d getOrigin(Vec3d rv) | |
| getOriginNoClone | back to summary |
|---|---|
| public Vec3d getOriginNoClone() | |
| inverseTransform | back to summary |
|---|---|
| public void inverseTransform(BaseTransform t) throws NoninvertibleTransformException | |
| isNonZero | back to summary |
|---|---|
| private static boolean isNonZero(double v) | |
| project | back to summary |
|---|---|
| public PickRay project(BaseTransform inversetx, boolean perspective, Vec3d tmpvec, Point2D ret) | |
| projectToZeroPlane | back to summary |
|---|---|
| public Point2D projectToZeroPlane(BaseTransform inversetx, boolean perspective, Vec3d tmpvec, Point2D ret) Project the ray through the specified (inverted) transform and onto the Z=0 plane of the resulting coordinate system. If a perspective projection is being used then only a point that projects forward from the eye to the plane will be returned, otherwise a null will be returned to indicate that the projection is behind the eye.
| |
| set | back to summary |
|---|---|
| public final void set(Vec3d origin, Vec3d direction, double nearClip, double farClip) | |
| set | back to summary |
|---|---|
| public final void set(double x, double y, double z, double nearClip, double farClip) | |
| setDirection | back to summary |
|---|---|
| public void setDirection(Vec3d direction) Sets the direction vector of the pick ray. This vector need not be normalized.
| |
| setDirection | back to summary |
|---|---|
| public void setDirection(double x, double y, double z) Sets the direction of the pick ray. The vector need not be normalized.
| |
| setOrigin | back to summary |
|---|---|
| public void setOrigin(Vec3d origin) Sets the origin of the pick ray in world coordinates.
| |
| setOrigin | back to summary |
|---|---|
| public void setOrigin(double x, double y, double z) Sets the origin of the pick ray in world coordinates.
| |
| setPickRay | back to summary |
|---|---|
| public void setPickRay(PickRay other) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| transform | back to summary |
|---|---|
| public void transform(BaseTransform t) | |