|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.qd3d.math.Point2D
Point2D contains static calls - the implementation is found in the QDPoint class
refer to Q3Point2D in QuickDraw3D| Field Summary |
| Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
| Fields inherited from interface quicktime.jdirect.QuickDraw3DLib |
libraryInstance |
| Method Summary | |
static QDPoint |
add(QDPoint point2D,
Vector2D v)
Returns the result of adding a two-dimensional vector to a two-dimensional point. |
static float |
distance(QDPoint p1,
QDPoint p2)
Returns the absolute value of the distance between points p1 and p2. |
static float |
distanceSquared(QDPoint p1,
QDPoint p2)
Returns the square value of the distance between points p1 and p2. |
static QDPoint |
rRatio(QDPoint p1,
QDPoint p2,
float r1,
float r2)
Returns the two-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). |
static Vector2D |
subtract(QDPoint p1,
QDPoint p2)
Returns a two-dimensional vector that is the result of subtracting the point p2 from p1. |
static QDPoint |
subtract(QDPoint point2D,
Vector2D v)
Returns the result of subtracting a two-dimensional vector from a two-dimensional point. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Vector2D subtract(QDPoint p1,
QDPoint p2)
p1 - A two-dimensional pointp2 - A two-dimensional point
public static float distance(QDPoint p1,
QDPoint p2)
p1 - A two-dimensional pointp2 - A two-dimensional point
public static float distanceSquared(QDPoint p1,
QDPoint p2)
p1 - A two-dimensional pointp2 - A two-dimensional point
public static QDPoint rRatio(QDPoint p1,
QDPoint p2,
float r1,
float r2)
p2 - A two-dimensional point.r1 - A floating-point number.r2 - A floating-point number.
public static QDPoint add(QDPoint point2D,
Vector2D v)
point2D - A two-dimensional point.v - a two-dimensional vector
public static QDPoint subtract(QDPoint point2D,
Vector2D v)
point2D - A two-dimensional point.v - a two-dimensional vector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||