|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.util.QTByteObject | +--quicktime.qd3d.math.Point3D
Point3D contains information for the three dimensional point. Refer to TQ3Point3D in QuickDraw3d
Field Summary | |
static int |
kNativeSize
This is the size (the number of bytes) that are required for this class |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Fields inherited from interface quicktime.jdirect.QuickDraw3DLib |
libraryInstance |
Constructor Summary | |
Point3D()
Creates a Point3D object containing no data. |
|
Point3D(float x,
float y,
float z)
Creates a Point3D object containing with given data. |
Method Summary | |
Point3D |
add(Vector3D vector3D)
Returns the three-dimensional point that is the result of adding the vector vector3D to this. |
java.lang.Object |
clone()
Returns a copy of this object. |
Vector3D |
cross(Point3D point2,
Point3D point3)
Returns the cross product of the two vectors determined by subtracting point2 from this and point3 from this QuickDraw3D::Q3Point3D_CrossProductTri |
float |
distance(Point3D p2)
Returns the absolute value of the distance between points this and p2. |
float |
distanceSquared(Point3D p2)
Returns the squared value of the distance between points this and p2. |
static EndianDescriptor |
getEndianDescriptor()
Returns the EndianDescriptor for this class. |
float |
getX()
returns the position in the X direction |
float |
getY()
returns the position in the Y direction |
float |
getZ()
returns the position in the Z direction |
Point3D |
rRatio(Point3D p2,
float r1,
float r2)
Returns the three-dimensional point that lies on the line segment between the points p1 and p2 and that is at a distance from the first point determined by the ratio r1/(r1 + r2). |
void |
setX(float x)
sets the position in the X direction |
void |
setY(float y)
sets the position in the Y direction |
void |
setZ(float z)
sets the position in the Z direction |
Vector3D |
subtract(Point3D p2)
Returns a three-dimensional vector that is the result of subtracting the point p2 from p1. |
Point3D |
subtract(Vector3D vector3D)
Returns the three-dimensional point that is the result of subtracting the vector vector3D from this. |
java.lang.String |
toString()
Returns a string representation of this object. |
Point3D |
transformQuaternion(Quaternion quaternion)
Return a three-dimensional point that is the result of transforming the vector specified by the vector parameter using the quaternion specified by the quaternion parameter. |
Methods inherited from class quicktime.util.QTByteObject |
equals, fromArray, getBytes, getSize |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int kNativeSize
Constructor Detail |
public Point3D()
public Point3D(float x, float y, float z)
x
- The final x coordinate.y
- The final y coordinate.z
- The final z coordinate.Method Detail |
public static final EndianDescriptor getEndianDescriptor()
public float getX()
public float getY()
public float getZ()
public void setX(float x)
public void setY(float y)
public void setZ(float z)
public Vector3D subtract(Point3D p2)
p2
- A three-dimensional pointpublic float distance(Point3D p2)
p2
- A three-dimensional pointpublic float distanceSquared(Point3D p2)
p2
- A three-dimensional pointpublic Point3D rRatio(Point3D p2, float r1, float r2)
p2
- A three-dimensional point.r1
- A floating-point number.r2
- A floating-point number.public Point3D add(Vector3D vector3D)
vector3D
- A three-dimensional vector.public Point3D subtract(Vector3D vector3D)
vector3D
- A three-dimensional vector.public Vector3D cross(Point3D point2, Point3D point3)
point2
- A three-dimensional point.point3
- A three-dimensional point.public Point3D transformQuaternion(Quaternion quaternion)
quaternion
- A quaternion.public java.lang.Object clone()
public java.lang.String toString()
toString
in class QTByteObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |