|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttoxi.geom.Vec3D
toxi.geom.Ray3D
public class Ray3D

A simple 3D ray datatype
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class toxi.geom.Vec3D |
|---|
Vec3D.Axis |
| Field Summary |
|---|
| Fields inherited from class toxi.geom.Vec3D |
|---|
MAX_VALUE, MIN_VALUE, x, X_AXIS, y, Y_AXIS, z, Z_AXIS, ZERO |
| Constructor Summary | |
|---|---|
Ray3D()
|
|
Ray3D(float x,
float y,
float z,
ReadonlyVec3D d)
|
|
Ray3D(ReadonlyVec3D o,
ReadonlyVec3D d)
|
|
| Method Summary | |
|---|---|
Vec3D |
getDirection()
Returns a copy of the ray's direction vector. |
float |
getDistanceToPoint(Vec3D p)
Calculates the distance between the given point and the infinite line coinciding with this ray. |
Vec3D |
getPointAtDistance(float dist)
Returns the point at the given distance on the ray. |
Ray3D |
setDirection(ReadonlyVec3D d)
Uses a normalized copy of the given vector as the ray direction. |
Line3D |
toLine3DWithPointAtDistance(float dist)
Converts the ray into a 3D Line segment with its start point coinciding with the ray origin and its other end point at the given distance along the ray. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ray3D()
public Ray3D(float x,
float y,
float z,
ReadonlyVec3D d)
public Ray3D(ReadonlyVec3D o,
ReadonlyVec3D d)
| Method Detail |
|---|
public Vec3D getDirection()
public float getDistanceToPoint(Vec3D p)
p -
public Vec3D getPointAtDistance(float dist)
dist -
public Ray3D setDirection(ReadonlyVec3D d)
d - new direction
public Line3D toLine3DWithPointAtDistance(float dist)
dist - end point distance
public java.lang.String toString()
toString in class Vec3D
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||