|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Vector2D | |
|---|---|
| math.geom2d | Planar geometry toolbox. |
| math.geom2d.conic | Conic curves like circles, ellipses, parabolas and hyperbolas Contains definition of various conic curves. |
| math.geom2d.curve | Curves interface hierarchy, and implementations of curve sets and various poly-curves. |
| math.geom2d.line | Straight curves : straight lines, line segments, rays, and polylines. |
| math.geom2d.spline | Bezier curves, and more generally polynomial curves. |
| math.geom2d.transform | Hieararchy of planar transforms, and implementation of common transforms like rotations, translations, reflections or scalings. |
| Uses of Vector2D in math.geom2d |
|---|
| Methods in math.geom2d that return Vector2D | |
|---|---|
static Vector2D |
Vector2D.createPolar(double rho,
double theta)
|
Vector2D |
Vector2D.getNormalizedVector()
Returns the vector with same direction as this one, but with norm equal to 1. |
Vector2D |
Vector2D.getOpposite()
Returns the opposite vector v2 of this, such that the sum of this and v2 equals the null vector. |
Vector2D |
Vector2D.minus(Vector2D v)
Return the subtraction of current vector with vector given as parameter. |
Vector2D |
Vector2D.plus(Vector2D v)
Return the sum of current vector with vector given as parameter. |
Vector2D |
Vector2D.transform(AffineTransform2D trans)
Transform the vector, by using only the first 4 parameters of the transform. |
| Methods in math.geom2d with parameters of type Vector2D | |
|---|---|
double |
Vector2D.cross(Vector2D v)
Get the cross product with point p. |
static double |
Vector2D.cross(Vector2D v1,
Vector2D v2)
get the cross product of the two vectors, defined by : dx1*dy2 - dx2*dy1
cross product is zero for colinear vectors. |
double |
Vector2D.dot(Vector2D v)
Get the dot product with point p. |
static double |
Vector2D.dot(Vector2D v1,
Vector2D v2)
Get the dot product of the two vectors, defined by : dx1*dy2 + dx2*dy1
Dot product is zero if the vectors defined by the 2 vectors are
orthogonal. |
static double |
Angle2D.getAngle(Vector2D vect1,
Vector2D vect2)
Gets angle between two (directed) straight objects. |
static double |
Angle2D.getHorizontalAngle(Vector2D vect)
Returns the horizontal angle formed by the line joining the origin and the point with given coordinate. |
boolean |
Vector2D.isColinear(Vector2D v)
test if the two vectors are colinear |
static boolean |
Vector2D.isColinear(Vector2D v1,
Vector2D v2)
test if the two vectors are colinear |
boolean |
Vector2D.isOrthogonal(Vector2D v)
test if the two vectors are orthogonal |
static boolean |
Vector2D.isOrthogonal(Vector2D v1,
Vector2D v2)
test if the two vectors are orthogonal |
Vector2D |
Vector2D.minus(Vector2D v)
Return the subtraction of current vector with vector given as parameter. |
Vector2D |
Vector2D.plus(Vector2D v)
Return the sum of current vector with vector given as parameter. |
| Uses of Vector2D in math.geom2d.conic |
|---|
| Methods in math.geom2d.conic that return Vector2D | |
|---|---|
Vector2D |
Ellipse2D.getProjectedVector(java.awt.geom.Point2D point,
double eMax)
Compute projection of a point onto an ellipse. |
Vector2D |
CircleArc2D.getTangent(double t)
|
Vector2D |
Circle2D.getTangent(double t)
|
Vector2D |
ParabolaArc2D.getTangent(double t)
|
Vector2D |
Ellipse2D.getTangent(double t)
|
Vector2D |
HyperbolaBranchArc2D.getTangent(double t)
|
Vector2D |
HyperbolaBranch2D.getTangent(double t)
|
Vector2D |
EllipseArc2D.getTangent(double t)
|
Vector2D |
Parabola2D.getTangent(double t)
|
Vector2D |
Ellipse2D.getVector1()
|
Vector2D |
Hyperbola2D.getVector1()
|
Vector2D |
Parabola2D.getVector1()
return the first vector of the parabola |
Vector2D |
Ellipse2D.getVector2()
|
Vector2D |
Hyperbola2D.getVector2()
|
Vector2D |
Parabola2D.getVector2()
return second director vector of the parabola. |
| Uses of Vector2D in math.geom2d.curve |
|---|
| Methods in math.geom2d.curve that return Vector2D | |
|---|---|
Vector2D |
SmoothCurve2D.getTangent(double t)
|
| Uses of Vector2D in math.geom2d.line |
|---|
| Methods in math.geom2d.line that return Vector2D | |
|---|---|
Vector2D |
LineObject2D.getTangent(double t)
|
Vector2D |
LineArc2D.getTangent(double t)
|
Vector2D |
StraightObject2D.getVector()
|
| Methods in math.geom2d.line with parameters of type Vector2D | |
|---|---|
void |
Ray2D.setRay(Point2D point,
Vector2D vect)
|
| Constructors in math.geom2d.line with parameters of type Vector2D | |
|---|---|
Ray2D(Point2D point,
Vector2D vector)
Creates a new Ray2D, originating from point point<\code>, and going
in the direction specified by |
|
StraightLine2D(java.awt.geom.Point2D point,
Vector2D direction)
Define a new Straight line going through the given point, and with the specified direction vector. |
|
| Uses of Vector2D in math.geom2d.spline |
|---|
| Methods in math.geom2d.spline that return Vector2D | |
|---|---|
Vector2D |
BezierCurve2D.getTangent(double t)
|
| Constructors in math.geom2d.spline with parameters of type Vector2D | |
|---|---|
BezierCurve2D(java.awt.geom.Point2D p1,
Vector2D v1,
java.awt.geom.Point2D p2,
Vector2D v2)
Build a new Bezier curve of degree 3 by specifying position and tangent of first and last points. |
|
| Uses of Vector2D in math.geom2d.transform |
|---|
| Methods in math.geom2d.transform that return Vector2D | |
|---|---|
Vector2D |
Translation2D.getVector()
|
| Methods in math.geom2d.transform with parameters of type Vector2D | |
|---|---|
static AffineTransform2D |
AbstractAffineTransform2D.createTranslation(Vector2D vect)
Return a translation by the given vector. |
void |
Translation2D.setVector(Vector2D v)
|
| Constructors in math.geom2d.transform with parameters of type Vector2D | |
|---|---|
LinearLineReflection2D(Vector2D vect)
|
|
Translation2D(Vector2D vector)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||