|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Point2D | |
---|---|
math.geom2d | Planar geometry toolbox. |
math.geom2d.circulinear | Definition of circulinear shapes and some implementations. |
math.geom2d.circulinear.buffer | Computation of buffer for circulinear shapes. |
math.geom2d.conic | Definition of various conic curves like circles, ellipses, parabolas and hyperbolas, and their respective arcs. |
math.geom2d.curve | Curves interface hierarchy, and implementations of curve sets and various poly-curves. |
math.geom2d.domain | Definition of planar domains, and basic implementations. |
math.geom2d.grid | Infinite grids with various geometries (square, triangle). |
math.geom2d.line |
Implementations of 'linear shapes', i.e. curves which can be embedded into a
straight lines, like straight lines ,
line segments , or rays . |
math.geom2d.point | Data structures for point sets. |
math.geom2d.polygon | Definitions and implementations of shapes composed several line segments: polylines, rings, polygons. |
math.geom2d.polygon.convhull | Convex hull computation. |
math.geom2d.spline | Bezier curves, and more generally polynomial curves. |
math.geom2d.transform | Contains interface hierarchy for planar transforms, and implementations for specialized transforms. |
math.geom3d.plane | Spatial geometry toolbox. |
Uses of Point2D in math.geom2d |
---|
Methods in math.geom2d that return Point2D | |
---|---|
static Point2D |
Point2D.centroid(java.util.Collection<? extends Point2D> points)
Computes the centroid, or center of mass, of a collection of points. |
static Point2D |
Point2D.centroid(Point2D[] points)
Computes the centroid, or center of mass, of an array of points. |
static Point2D |
Point2D.centroid(Point2D[] points,
double[] weights)
Computes the weighted centroid, or center of mass, of an array of points. |
static Point2D |
Point2D.centroid(Point2D pt1,
Point2D pt2,
Point2D pt3)
Computes the centroid of three points. |
Point2D |
Point2D.clone()
Creates a new Point2D object with same coordinates. |
static Point2D |
Point2D.create(double x,
double y)
Deprecated. since 0.11.1 |
static Point2D |
Point2D.create(java.awt.geom.Point2D point)
Deprecated. since 0.11.1 |
static Point2D |
Point2D.create(Point2D point)
Static factory for creating a new point from an existing instance of javageom point. |
static Point2D |
Point2D.createPolar(double rho,
double theta)
Creates a new point from polar coordinates rho and
theta . |
static Point2D |
Point2D.createPolar(double x0,
double y0,
double rho,
double theta)
Creates a new point from polar coordinates rho and
theta , from the position (x0,y0). |
static Point2D |
Point2D.createPolar(Point2D point,
double rho,
double theta)
Creates a new point from polar coordinates rho and
theta , from the given point. |
Point2D |
ColinearPoints2DException.getP1()
|
Point2D |
ColinearPoints2DException.getP2()
|
Point2D |
ColinearPoints2DException.getP3()
|
static Point2D |
Point2D.midPoint(Point2D p1,
Point2D p2)
|
Point2D |
Point2D.minus(Point2D p)
Removes the coordinates of the given point from the coordinates of this point. |
Point2D |
Point2D.minus(Vector2D v)
Removes the coordinates of the given vector from the coordinates of this point. |
Point2D |
Point2D.plus(Point2D p)
Adds the coordinates of the given point to the coordinates of this point. |
Point2D |
Point2D.plus(Vector2D v)
Adds the coordinates of the given vector to the coordinates of this point. |
Point2D |
Point2D.rotate(double theta)
Rotates the point by a given angle around the origin. |
Point2D |
Point2D.rotate(Point2D center,
double theta)
Rotates the point by a given angle around an arbitrary center. |
Point2D |
Point2D.scale(double k)
Returns the new point scaled by the same amount in each direction. |
Point2D |
Point2D.scale(double kx,
double ky)
Returns the new point scaled by amount given in each direction. |
Point2D |
Point2D.transform(AffineTransform2D trans)
Returns the transformed point. |
Point2D |
Point2D.transform(CircleInversion2D inv)
|
Point2D |
AffineTransform2D.transform(Point2D p)
Computes the coordinates of the transformed point. |
Point2D[] |
AffineTransform2D.transform(Point2D[] src,
Point2D[] dst)
|
Point2D |
Point2D.translate(double tx,
double ty)
Returns the new point translated by amount given in each direction. |
Methods in math.geom2d that return types with arguments of type Point2D | |
---|---|
java.util.Iterator<Point2D> |
Point2D.iterator()
|
java.util.Collection<Point2D> |
Point2D.points()
|
java.util.Collection<Point2D> |
Box2D.vertices()
|
Methods in math.geom2d with parameters of type Point2D | |
---|---|
static double |
Angle2D.absoluteAngle(Point2D p1,
Point2D p2,
Point2D p3)
Returns the absolute angle between the ray formed by (p2, p1) and the ray formed by (p2, p3). |
static double |
Angle2D.angle(Point2D p1,
Point2D p2,
Point2D p3)
Returns the oriented angle between the ray formed by (p2, p1) and the ray formed by (p2, p3). |
static int |
Point2D.ccw(Point2D p0,
Point2D p1,
Point2D p2)
Computes the orientation of the 3 points: returns +1 is the path P0->P1->P2 turns Counter-Clockwise, -1 if the path turns Clockwise, and 0 if the point P2 is located on the line segment [P0 P1]. |
static Point2D |
Point2D.centroid(Point2D[] points)
Computes the centroid, or center of mass, of an array of points. |
static Point2D |
Point2D.centroid(Point2D[] points,
double[] weights)
Computes the weighted centroid, or center of mass, of an array of points. |
static Point2D |
Point2D.centroid(Point2D pt1,
Point2D pt2,
Point2D pt3)
Computes the centroid of three points. |
boolean |
ShapeArray2D.contains(Point2D p)
|
boolean |
Shape2D.contains(Point2D p)
Checks if the shape contains the given point. |
boolean |
Box2D.contains(Point2D point)
Checks if this box contains the given point. |
boolean |
Point2D.contains(Point2D p)
Returns true if the two points are equal. |
static Vector2D |
Vector2D.create(Point2D point)
Deprecated. since 0.11.1 |
static Point2D |
Point2D.create(Point2D point)
Static factory for creating a new point from an existing instance of javageom point. |
static Box2D |
Box2D.create(Point2D p1,
Point2D p2)
Deprecated. since 0.11.1 |
static AffineTransform2D |
AffineTransform2D.createHomothecy(Point2D center,
double k)
Deprecated. replaced by scaling (0.11.1) |
static AffineTransform2D |
AffineTransform2D.createPointReflection(Point2D center)
Returns a center reflection around a point. |
static Point2D |
Point2D.createPolar(Point2D point,
double rho,
double theta)
Creates a new point from polar coordinates rho and
theta , from the given point. |
static AffineTransform2D |
AffineTransform2D.createQuadrantRotation(Point2D center,
int numQuadrant)
Creates a rotation composed of the given number of rotations by 90 degrees around the given point. |
static AffineTransform2D |
AffineTransform2D.createRotation(Point2D center,
double angle)
Creates a rotation around the specified point, with angle in radians. |
static AffineTransform2D |
AffineTransform2D.createScaling(Point2D center,
double sx,
double sy)
Creates a scaling by the given coefficients, centered on the point given by (x0,y0). |
double |
ShapeArray2D.distance(Point2D p)
|
double |
Shape2D.distance(Point2D p)
Returns the distance of the shape to the given point, or the distance of point to the frontier of the shape in the case of a plain shape. |
double |
Point2D.distance(Point2D point)
Computes the distance between this and the point point . |
static double |
Point2D.distance(Point2D p1,
Point2D p2)
Computes the Euclidean distance between two points. |
static double |
Angle2D.horizontalAngle(Point2D point)
Returns the horizontal angle formed by the line joining the origin and the given point. |
static double |
Angle2D.horizontalAngle(Point2D p1,
Point2D p2)
Returns the horizontal angle formed by the line joining the two given points. |
static boolean |
Point2D.isColinear(Point2D p1,
Point2D p2,
Point2D p3)
Tests if the three points are colinear. |
static Point2D |
Point2D.midPoint(Point2D p1,
Point2D p2)
|
Point2D |
Point2D.minus(Point2D p)
Removes the coordinates of the given point from the coordinates of this point. |
Point2D |
Point2D.plus(Point2D p)
Adds the coordinates of the given point to the coordinates of this point. |
static double |
Angle2D.pseudoAngle(Point2D p1,
Point2D p2)
Computes the pseudo-angle of a line joining the 2 points. |
Point2D |
Point2D.rotate(Point2D center,
double theta)
Rotates the point by a given angle around an arbitrary center. |
Point2D |
AffineTransform2D.transform(Point2D p)
Computes the coordinates of the transformed point. |
Point2D[] |
AffineTransform2D.transform(Point2D[] src,
Point2D[] dst)
|
Point2D[] |
AffineTransform2D.transform(Point2D[] src,
Point2D[] dst)
|
Method parameters in math.geom2d with type arguments of type Point2D | |
---|---|
static Point2D |
Point2D.centroid(java.util.Collection<? extends Point2D> points)
Computes the centroid, or center of mass, of a collection of points. |
Constructors in math.geom2d with parameters of type Point2D | |
---|---|
Box2D(Point2D point,
double w,
double h)
Constructor from a point, a width and an height |
|
Box2D(Point2D p1,
Point2D p2)
Constructor from 2 points, giving extreme coordinates of the box. |
|
ColinearPoints2DException(Point2D p1,
Point2D p2,
Point2D p3)
|
|
Point2D(Point2D point)
Constructs a new Point2D by copying coordinates of given point. |
|
Vector2D(Point2D point)
Constructs a new vector between the origin and the given point. |
|
Vector2D(Point2D point1,
Point2D point2)
Constructs a new vector between two points |
Uses of Point2D in math.geom2d.circulinear |
---|
Methods in math.geom2d.circulinear that return types with arguments of type Point2D | |
---|---|
static java.util.Collection<Point2D> |
CirculinearCurves2D.findIntersections(CirculinearCurve2D curve1,
CirculinearCurve2D curve2)
Compute the set of intersection points between the two curves. |
static java.util.Collection<Point2D> |
CirculinearCurves2D.findIntersections(CirculinearElement2D elem1,
CirculinearElement2D elem2)
Computes the intersections, if they exist, of two circulinear elements. |
static java.util.Collection<Point2D> |
CirculinearCurves2D.findSelfIntersections(CirculinearCurve2D curve)
Computes intersection point of a single curve, by iterating on pair of Circulinear elements composing the curve. |
Method parameters in math.geom2d.circulinear with type arguments of type Point2D | |
---|---|
static double |
CirculinearCurves2D.getDistanceCurvePoints(CirculinearCurve2D curve,
java.util.Collection<? extends Point2D> points)
|
Uses of Point2D in math.geom2d.circulinear.buffer |
---|
Methods in math.geom2d.circulinear.buffer with parameters of type Point2D | |
---|---|
CirculinearContinuousCurve2D |
TriangleCapFactory.createCap(Point2D p1,
Point2D p2)
|
CirculinearContinuousCurve2D |
ButtCapFactory.createCap(Point2D p1,
Point2D p2)
|
CirculinearContinuousCurve2D |
SquareCapFactory.createCap(Point2D p1,
Point2D p2)
|
CirculinearContinuousCurve2D |
RoundCapFactory.createCap(Point2D p1,
Point2D p2)
|
CirculinearContinuousCurve2D |
CapFactory.createCap(Point2D p1,
Point2D p2)
|
CirculinearContinuousCurve2D |
TriangleCapFactory.createCap(Point2D center,
Vector2D direction,
double dist)
|
CirculinearContinuousCurve2D |
ButtCapFactory.createCap(Point2D center,
Vector2D direction,
double dist)
|
CirculinearContinuousCurve2D |
SquareCapFactory.createCap(Point2D center,
Vector2D direction,
double dist)
|
CirculinearContinuousCurve2D |
RoundCapFactory.createCap(Point2D center,
Vector2D direction,
double dist)
|
CirculinearContinuousCurve2D |
CapFactory.createCap(Point2D center,
Vector2D direction,
double dist)
|
Uses of Point2D in math.geom2d.conic |
---|
Methods in math.geom2d.conic that return Point2D | |
---|---|
Point2D |
Circle2D.center()
Returns center of the circle. |
Point2D |
Ellipse2D.center()
Returns center of the ellipse. |
Point2D |
EllipseShape2D.center()
Returns center of the ellipse shape. |
static Point2D |
Circle2D.circumCenter(Point2D p1,
Point2D p2,
Point2D p3)
Computes the center of the circumscribed circle of the three input points. |
Point2D |
Circle2D.firstPoint()
Get the first point of the circle, which is the same as the last point. |
Point2D |
Ellipse2D.firstPoint()
Returns the first point of the ellipse, which is the same as the last point. |
Point2D |
Circle2D.focus1()
Returns the first focus, which for a circle is the same point as the center. |
Point2D |
Ellipse2D.focus1()
Return the first focus. |
Point2D |
Circle2D.focus2()
Returns the second focus, which for a circle is the same point as the center. |
Point2D |
Ellipse2D.focus2()
Returns the second focus. |
Point2D |
Hyperbola2D.getCenter()
Returns the center of the Hyperbola. |
Point2D |
Parabola2D.getFocus()
Returns the focus of the parabola. |
Point2D |
Hyperbola2D.getFocus1()
Returns the focus located on the positive side of the main hyperbola axis. |
Point2D |
Hyperbola2D.getFocus2()
Returns the focus located on the negative side of the main hyperbola axis. |
Point2D |
Parabola2D.getVertex()
|
Point2D |
Circle2D.lastPoint()
Get the last point of the circle, which is the same as the first point. |
Point2D |
Ellipse2D.lastPoint()
Returns the last point of the ellipse, which is the same as the first point. |
Point2D |
Circle2D.point(double t)
Get the position of the curve from internal parametric representation, depending on the parameter t. |
Point2D |
Ellipse2D.point(double t)
get the position of the curve from internal parametric representation, depending on the parameter t. |
Point2D |
HyperbolaBranch2D.point(double t)
|
Point2D |
EllipseArc2D.point(double t)
|
Point2D |
Parabola2D.point(double t)
|
Point2D |
CircleArc2D.point(double t)
Returns the position of a point form the curvilinear position. |
Point2D |
ParabolaArc2D.point(double t)
|
Point2D |
HyperbolaBranchArc2D.point(double t)
If t0 equals minus infinity, throws an UnboundedShapeException. |
Point2D |
Ellipse2D.projectedPoint(Point2D point)
|
Point2D |
Hyperbola2D.toGlobal(Point2D point)
Transforms a point in local coordinate (ie orthogonal centered hyberbola with a=b=1) to global coordinate system. |
Point2D |
Hyperbola2D.toLocal(Point2D point)
|
Methods in math.geom2d.conic that return types with arguments of type Point2D | |
---|---|
static java.util.Collection<Point2D> |
Circle2D.circlesIntersections(Circle2D circle1,
Circle2D circle2)
Computes the intersections points between two circles or circular shapes. |
static java.util.Collection<Point2D> |
Circle2D.getIntersections(Circle2D circle1,
Circle2D circle2)
Deprecated. replaced by circlesIntersections(Circle2D, Circle2D) (0.11.1) |
static java.util.Collection<Point2D> |
Circle2D.getIntersections(CircularShape2D circle,
LinearShape2D line)
Deprecated. replaced by lineCircleIntersections(LinearShape2D, CircularShape2D) (0.11.1) |
java.util.Collection<Point2D> |
Circle2D.intersections(Circle2D circle)
Returns the intersection points with another circle. |
java.util.Collection<Point2D> |
Circle2D.intersections(LinearShape2D line)
Computes intersections of the circle with a line. |
java.util.Collection<Point2D> |
Ellipse2D.intersections(LinearShape2D line)
Compute intersections of the ellipse with a straight object (line, line segment, ray...). |
java.util.Collection<Point2D> |
Hyperbola2D.intersections(LinearShape2D line)
|
java.util.Collection<Point2D> |
HyperbolaBranch2D.intersections(LinearShape2D line)
|
java.util.Collection<Point2D> |
EllipseArc2D.intersections(LinearShape2D line)
|
java.util.Collection<Point2D> |
Parabola2D.intersections(LinearShape2D line)
|
java.util.Collection<Point2D> |
CircleArc2D.intersections(LinearShape2D line)
Computes intersections of the circle arc with a line. |
java.util.Collection<Point2D> |
ParabolaArc2D.intersections(LinearShape2D line)
|
java.util.Collection<Point2D> |
HyperbolaBranchArc2D.intersections(LinearShape2D line)
|
static java.util.Collection<Point2D> |
Circle2D.lineCircleIntersections(LinearShape2D line,
CircularShape2D circle)
Computes intersections of a circle with a line. |
Methods in math.geom2d.conic with parameters of type Point2D | |
---|---|
static Point2D |
Circle2D.circumCenter(Point2D p1,
Point2D p2,
Point2D p3)
Computes the center of the circumscribed circle of the three input points. |
static Circle2D |
Circle2D.circumCircle(Point2D p1,
Point2D p2,
Point2D p3)
Computes the circumscribed circle of the 3 input points. |
boolean |
Circle2D.contains(Point2D p)
Returns true if the point p lies on the ellipse, with precision given by Shape2D.ACCURACY. |
boolean |
Ellipse2D.contains(Point2D p)
Returns true if the point p lies on the ellipse, with precision given by Shape2D.ACCURACY. |
boolean |
Hyperbola2D.contains(Point2D point)
|
boolean |
HyperbolaBranch2D.contains(Point2D point)
|
boolean |
EllipseArc2D.contains(Point2D point)
|
boolean |
Parabola2D.contains(Point2D point)
|
boolean |
CircleArc2D.contains(Point2D p)
|
boolean |
ParabolaArc2D.contains(Point2D point)
|
boolean |
HyperbolaBranchArc2D.contains(Point2D p)
|
static Circle2D |
Circle2D.create(Point2D center,
double radius)
Deprecated. since 0.11.1 |
static Circle2D |
Circle2D.create(Point2D center,
double radius,
boolean direct)
Deprecated. since 0.11.1 |
static Ellipse2D |
Ellipse2D.create(Point2D center,
double l1,
double l2)
Deprecated. since 0.11.1 |
static Ellipse2D |
Ellipse2D.create(Point2D center,
double l1,
double l2,
double theta)
Deprecated. since 0.11.1 |
static Hyperbola2D |
Hyperbola2D.create(Point2D center,
double a,
double b,
double theta)
|
static CircleArc2D |
CircleArc2D.create(Point2D center,
double radius,
double startAngle,
double angleExtent)
Deprecated. since 0.11.1 |
static Ellipse2D |
Ellipse2D.create(Point2D center,
double l1,
double l2,
double theta,
boolean direct)
Define center by point, major and minor semi axis lengths, orientation angle, and boolean flag for direct ellipse. |
static Hyperbola2D |
Hyperbola2D.create(Point2D center,
double a,
double b,
double theta,
boolean d)
|
static CircleArc2D |
CircleArc2D.create(Point2D center,
double radius,
double startAngle,
double endAngle,
boolean direct)
Deprecated. since 0.11.1 |
static Parabola2D |
Parabola2D.create(Point2D vertex,
Point2D focus)
Creates a parabola by supplying the vertex and the focus. |
static Ellipse2D |
Ellipse2D.create(Point2D focus1,
Point2D focus2,
double chord)
Create a new Ellipse by specifying the two focii, and the length of the chord. |
static Circle2D |
Circle2D.create(Point2D p1,
Point2D p2,
Point2D p3)
Deprecated. replaced by createCircle(Point2D, Point2D, Point2D) (0.11.1) |
double |
Circle2D.distance(Point2D point)
|
double |
Ellipse2D.distance(Point2D point)
Computes distance using a polyline approximation. |
double |
HyperbolaBranch2D.distance(Point2D point)
|
double |
EllipseArc2D.distance(Point2D point)
|
double |
Parabola2D.distance(Point2D p)
|
double |
CircleArc2D.distance(Point2D p)
|
double |
ParabolaArc2D.distance(Point2D p)
|
double |
HyperbolaBranchArc2D.distance(Point2D point)
|
boolean |
Circle2D.isInside(Point2D point)
Test whether the point is inside the circle. |
boolean |
Ellipse2D.isInside(Point2D point)
Test whether the point is inside the ellipse. |
boolean |
HyperbolaBranch2D.isInside(Point2D point)
|
boolean |
EllipseArc2D.isInside(Point2D p)
|
boolean |
Parabola2D.isInside(Point2D point)
|
boolean |
CircleArc2D.isInside(Point2D point)
|
boolean |
ParabolaArc2D.isInside(Point2D point)
|
boolean |
HyperbolaBranchArc2D.isInside(Point2D pt)
|
double |
Circle2D.position(Point2D point)
|
double |
Ellipse2D.position(Point2D point)
|
double |
HyperbolaBranch2D.position(Point2D point)
|
double |
EllipseArc2D.position(Point2D point)
|
double |
Parabola2D.position(Point2D point)
Returns position of point on the parabola. |
double |
CircleArc2D.position(Point2D point)
Returns relative position between 0 and the angle extent. |
double |
ParabolaArc2D.position(Point2D point)
|
double |
HyperbolaBranchArc2D.position(Point2D point)
|
double |
Circle2D.project(Point2D point)
Computes the projection position of the point on the circle, by computing angle with horizonrtal |
double |
Ellipse2D.project(Point2D point)
Computes the approximate projection position of the point on the ellipse. |
double |
HyperbolaBranch2D.project(Point2D point)
|
double |
EllipseArc2D.project(Point2D point)
|
double |
Parabola2D.project(Point2D point)
Returns position of point on the parabola. |
double |
CircleArc2D.project(Point2D point)
|
double |
ParabolaArc2D.project(Point2D point)
|
double |
HyperbolaBranchArc2D.project(Point2D point)
|
Point2D |
Ellipse2D.projectedPoint(Point2D point)
|
Vector2D |
Ellipse2D.projectedVector(Point2D point,
double eMax)
Compute projection of a point onto an ellipse. |
double |
Circle2D.signedDistance(Point2D point)
|
double |
Ellipse2D.signedDistance(Point2D point)
Returns an approximation of the signed distance to the ellipse. |
double |
HyperbolaBranch2D.signedDistance(Point2D point)
|
double |
EllipseArc2D.signedDistance(Point2D p)
|
double |
Parabola2D.signedDistance(Point2D p)
|
double |
CircleArc2D.signedDistance(Point2D p)
|
double |
ParabolaArc2D.signedDistance(Point2D p)
|
double |
HyperbolaBranchArc2D.signedDistance(Point2D point)
|
Point2D |
Hyperbola2D.toGlobal(Point2D point)
Transforms a point in local coordinate (ie orthogonal centered hyberbola with a=b=1) to global coordinate system. |
Point2D |
Hyperbola2D.toLocal(Point2D point)
|
double |
Circle2D.windingAngle(Point2D point)
Return either 0, 2*PI or -2*PI, depending whether the point is located inside the interior of the ellipse or not. |
double |
Ellipse2D.windingAngle(Point2D point)
Return either 0, 2*PI or -2*PI, depending whether the point is located inside the interior of the ellipse or not. |
double |
HyperbolaBranch2D.windingAngle(Point2D point)
|
double |
EllipseArc2D.windingAngle(Point2D point)
|
double |
Parabola2D.windingAngle(Point2D point)
|
double |
CircleArc2D.windingAngle(Point2D point)
|
double |
ParabolaArc2D.windingAngle(Point2D point)
|
double |
HyperbolaBranchArc2D.windingAngle(Point2D point)
|
Constructors in math.geom2d.conic with parameters of type Point2D | |
---|---|
Circle2D(Point2D center,
double radius)
Create a new circle with specified point center and radius |
|
Circle2D(Point2D center,
double radius,
boolean direct)
Create a new circle with specified center, radius and orientation |
|
CircleArc2D(Point2D center,
double radius,
double startAngle,
double angleExtent)
Create a new circle arc with specified point center and radius |
|
CircleArc2D(Point2D center,
double radius,
double start,
double end,
boolean direct)
Create a new circle arc with specified point center and radius, start and end angles, and by specifying whether arc is direct or not. |
|
Ellipse2D(Point2D center,
double l1,
double l2)
Main constructor: define center by a point plus major and minor semi axis |
|
Ellipse2D(Point2D center,
double l1,
double l2,
double theta)
Define center by point, major and minor semi axis lengths, and orientation angle. |
|
Hyperbola2D(Point2D center,
double a,
double b,
double theta)
|
|
Hyperbola2D(Point2D center,
double a,
double b,
double theta,
boolean d)
|
|
Parabola2D(Point2D vertex,
double a,
double theta)
|
Uses of Point2D in math.geom2d.curve |
---|
Methods in math.geom2d.curve that return Point2D | |
---|---|
Point2D |
CurveArray2D.firstPoint()
Returns the first point of the curve. |
Point2D |
Curve2D.firstPoint()
Returns the first point of the curve. |
Point2D |
AbstractContinuousCurve2D.firstPoint()
|
Point2D |
GeneralPath2D.getCurrentPoint()
Returns the coordinates most recently added to the end of the path as a Point2D object. |
Point2D |
CurveArray2D.lastPoint()
Returns the last point of the curve. |
Point2D |
Curve2D.lastPoint()
Returns the last point of the curve. |
Point2D |
AbstractContinuousCurve2D.lastPoint()
|
Point2D |
CurveArray2D.point(double t)
|
Point2D |
Curve2D.point(double t)
Returns the point located at the given position on the curve. |
Methods in math.geom2d.curve that return types with arguments of type Point2D | |
---|---|
java.util.Collection<Point2D> |
CurveArray2D.intersections(LinearShape2D line)
|
java.util.Collection<Point2D> |
Curve2D.intersections(LinearShape2D line)
Returns the intersection points of the curve with the specified line. |
java.util.Collection<Point2D> |
AbstractSmoothCurve2D.singularPoints()
Returns an empty set of Point2D, as a smooth curve does not have singular points by definition. |
java.util.Collection<Point2D> |
CurveArray2D.singularPoints()
Computes the set of singular points as the set of singular points of each curve, plus the extremities of each curve. |
java.util.Collection<Point2D> |
Curve2D.singularPoints()
Returns a set of singular points, i. e. which do not locally admit derivative. |
java.util.Collection<Point2D> |
AbstractSmoothCurve2D.vertices()
Returns a set of Point2D, containing the extremities of the curve if they are not infinite. |
java.util.Collection<Point2D> |
CurveArray2D.vertices()
Implementation of getVertices() for curve returns the same result as the method getSingularPoints(). |
java.util.Collection<Point2D> |
Curve2D.vertices()
Returns the set of vertices for this curve. |
Methods in math.geom2d.curve with parameters of type Point2D | |
---|---|
boolean |
CurveArray2D.contains(Point2D p)
Returns true if one of the curves contains the point |
boolean |
GeneralPath2D.contains(Point2D p)
Tests if the specified Point2D is inside the boundary of
this Shape . |
void |
GeneralPath2D.curveTo(Point2D p1,
Point2D p2,
Point2D p3)
Adds a curved segment, defined by three new points, to the path by drawing a Bezier curve that intersects both the current coordinates and the coordinates (x3, y3), using the specified points (x1, y1) and (x2, y2) as Bezier control points. |
double |
CurveArray2D.distance(Point2D p)
|
void |
GeneralPath2D.lineTo(Point2D p)
Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates. |
void |
GeneralPath2D.moveTo(Point2D p)
Adds a point to the path by moving to the specified coordinates. |
double |
CurveArray2D.position(Point2D point)
|
double |
Curve2D.position(Point2D point)
Computes the position of the point on the curve. |
double |
CurveArray2D.project(Point2D point)
|
double |
Curve2D.project(Point2D point)
Returns the position of the closest orthogonal projection of the point on the curve, or of the closest singular point. |
void |
GeneralPath2D.quadTo(Point2D p1,
Point2D p2)
Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the coordinates (x2, y2), using the specified point (x1, y1) as a quadratic parametric control point. |
Uses of Point2D in math.geom2d.domain |
---|
Methods in math.geom2d.domain with parameters of type Point2D | |
---|---|
boolean |
GenericDomain2D.contains(Point2D p)
|
double |
GenericDomain2D.distance(Point2D p)
|
static Polyline2D |
Boundaries2D.getBoundaryPortion(Box2D box,
Point2D p0,
Point2D p1)
Extracts a portion of the boundary of a bounded box. |
boolean |
OrientedCurve2D.isInside(Point2D pt)
Returns true if the point is 'inside' the domain bounded by the curve. |
boolean |
ContourArray2D.isInside(Point2D point)
|
boolean |
Boundary2D.isInside(Point2D pt)
Returns true if the point is 'inside' the domain bounded by the curve. |
boolean |
PolyOrientedCurve2D.isInside(Point2D point)
Determines if the given point lies within the domain bounded by this curve. |
double |
OrientedCurve2D.signedDistance(Point2D point)
Returns the signed distance of the curve to the given point. |
double |
ContourArray2D.signedDistance(Point2D p)
|
double |
PolyOrientedCurve2D.signedDistance(Point2D p)
|
double |
OrientedCurve2D.windingAngle(Point2D point)
Return the angle portion that the curve turn around the given point. |
double |
ContourArray2D.windingAngle(Point2D point)
|
double |
PolyOrientedCurve2D.windingAngle(Point2D point)
|
Uses of Point2D in math.geom2d.grid |
---|
Methods in math.geom2d.grid that return Point2D | |
---|---|
Point2D |
Grid2D.getClosestVertex(Point2D point)
|
Point2D |
TriangleGrid2D.getClosestVertex(Point2D point)
|
Point2D |
SquareGrid2D.getClosestVertex(Point2D point)
|
Point2D |
Grid2D.getOrigin()
|
Point2D |
TriangleGrid2D.getOrigin()
|
Point2D |
SquareGrid2D.getOrigin()
|
Methods in math.geom2d.grid with parameters of type Point2D | |
---|---|
Point2D |
Grid2D.getClosestVertex(Point2D point)
|
Point2D |
TriangleGrid2D.getClosestVertex(Point2D point)
|
Point2D |
SquareGrid2D.getClosestVertex(Point2D point)
|
void |
TriangleGrid2D.setOrigin(Point2D point)
Deprecated. grids are supposed to be immutable (0.8.0) |
void |
SquareGrid2D.setOrigin(Point2D point)
Deprecated. grids are supposed to be immutable (0.8.0) |
Constructors in math.geom2d.grid with parameters of type Point2D | |
---|---|
SquareGrid2D(Point2D origin)
|
|
SquareGrid2D(Point2D origin,
double s)
|
|
SquareGrid2D(Point2D origin,
double sx,
double sy)
|
|
TriangleGrid2D(Point2D point)
Assumes unit grid. |
|
TriangleGrid2D(Point2D point,
double s)
|
|
TriangleGrid2D(Point2D point,
double s,
double theta)
|
Uses of Point2D in math.geom2d.line |
---|
Fields in math.geom2d.line declared as Point2D | |
---|---|
Point2D |
Line2D.p1
The origin point. |
Point2D |
Line2D.p2
The destination point. |
Methods in math.geom2d.line that return Point2D | |
---|---|
Point2D |
Line2D.firstPoint()
Get the first point of the curve. |
Point2D |
StraightLine2D.firstPoint()
Throws an infiniteShapeException |
Point2D |
LineSegment2D.firstPoint()
Returns the first point of the edge. |
Point2D |
Ray2D.firstPoint()
|
Point2D |
LineArc2D.firstPoint()
Returns the first point of the edge. |
static Point2D |
AbstractLine2D.getIntersection(AbstractLine2D line1,
AbstractLine2D line2)
Returns the unique intersection of two straight objects. |
static Point2D |
StraightLine2D.getIntersection(Point2D p1,
Point2D p2,
Point2D p3,
Point2D p4)
Computes the intersection point of the two (infinite) lines going through p1 and p2 for the first one, and p3 and p4 for the second one. |
Point2D |
Line2D.getOtherPoint(Point2D point)
Return the opposite vertex of the edge. |
Point2D |
Line2D.getPoint1()
Return the first point of the edge. |
Point2D |
Line2D.getPoint2()
Return the last point of the edge. |
Point2D |
AbstractLine2D.getSymmetric(double x,
double y)
Return the symmetric of point with coordinate (x, y) relative to this straight line. |
Point2D |
AbstractLine2D.getSymmetric(Point2D p)
Return the symmetric of point p relative to this straight line. |
Point2D |
Line2D.intersection(LinearShape2D line)
|
Point2D |
AbstractLine2D.intersection(LinearShape2D line)
Returns the unique intersection with a linear shape. |
Point2D |
LinearShape2D.intersection(LinearShape2D line)
Returns the unique intersection with a linear shape. |
Point2D |
Line2D.lastPoint()
Get the last point of the curve. |
Point2D |
StraightLine2D.lastPoint()
Throws an infiniteShapeException |
Point2D |
LineSegment2D.lastPoint()
Returns the last point of the edge. |
Point2D |
LineArc2D.lastPoint()
Returns the last point of the edge. |
Point2D |
LineSegment2D.opposite(Point2D point)
Returns the opposite vertex of the edge. |
Point2D |
Line2D.origin()
|
Point2D |
AbstractLine2D.origin()
Returns the origin point of this linear shape. |
Point2D |
LinearShape2D.origin()
Returns a point in the linear shape. |
Point2D |
Line2D.point(double t)
|
Point2D |
InvertedRay2D.point(double t)
|
Point2D |
StraightLine2D.point(double t)
Returns the point specified with the parametric representation of the line. |
Point2D |
LineSegment2D.point(double t)
|
Point2D |
Ray2D.point(double t)
|
Point2D |
LineArc2D.point(double t)
|
Point2D |
AbstractLine2D.projectedPoint(double x,
double y)
Returns the projection of point p on the line. |
Point2D |
AbstractLine2D.projectedPoint(Point2D p)
Returns the projection of point p on the line. |
Methods in math.geom2d.line that return types with arguments of type Point2D | |
---|---|
java.util.Collection<Point2D> |
Line2D.intersections(LinearShape2D line)
|
java.util.Collection<Point2D> |
AbstractLine2D.intersections(LinearShape2D line)
Returns the intersection points of the curve with the specified line. |
java.util.Collection<Point2D> |
StraightLine2D.singularPoints()
Returns an empty list of points. |
java.util.Collection<Point2D> |
LineArc2D.singularPoints()
|
Methods in math.geom2d.line with parameters of type Point2D | |
---|---|
boolean |
Line2D.contains(Point2D p)
Returns true if the point p lies on the line, with precision given by Shape2D.ACCURACY. |
boolean |
StraightLine2D.contains(Point2D p)
Returns true if the point p lies on the line, with precision given by Shape2D.ACCURACY. |
boolean |
LineArc2D.contains(Point2D pt)
|
boolean |
AbstractLine2D.contains(Point2D p)
|
static StraightLine2D |
StraightLine2D.create(Point2D point,
double angle)
Deprecated. since 0.11.1 |
static Line2D |
Line2D.create(Point2D p1,
Point2D p2)
Deprecated. since 0.11.1 |
static StraightLine2D |
StraightLine2D.create(Point2D p1,
Point2D p2)
Deprecated. since 0.11.1 |
static LineSegment2D |
LineSegment2D.create(Point2D p1,
Point2D p2)
Deprecated. since 0.11.1 |
static Ray2D |
Ray2D.create(Point2D origin,
Point2D target)
Deprecated. since 0.11.1 |
static LineArc2D |
LineArc2D.create(Point2D p1,
Point2D p2,
double t0,
double t1)
Static factory for creating a new LineArc2D |
static InvertedRay2D |
InvertedRay2D.create(Point2D target,
Vector2D direction)
Deprecated. since 0.11.1 |
static StraightLine2D |
StraightLine2D.create(Point2D origin,
Vector2D direction)
Deprecated. since 0.11.1 |
static Ray2D |
Ray2D.create(Point2D origin,
Vector2D direction)
Deprecated. since 0.11.1 |
static StraightLine2D |
StraightLine2D.createHorizontal(Point2D origin)
Creates a vertical straight line through the given point. |
static StraightLine2D |
StraightLine2D.createMedian(Point2D p1,
Point2D p2)
Creates a median between 2 points. |
static StraightLine2D |
StraightLine2D.createParallel(LinearShape2D line,
Point2D point)
Returns a new Straight line, parallel to another straight object (ray, straight line or edge), and going through the given point. |
static StraightLine2D |
StraightLine2D.createPerpendicular(LinearShape2D linear,
Point2D point)
Returns a new Straight line, perpendicular to a straight object (ray, straight line or edge), and going through the given point. |
static StraightLine2D |
StraightLine2D.createVertical(Point2D origin)
Creates a vertical straight line through the given point. |
double |
Line2D.distance(Point2D p)
Returns the distance of the point p to this edge. |
double |
AbstractLine2D.distance(Point2D p)
Returns the distance of the StraightObject2d to the given point. |
static Point2D |
StraightLine2D.getIntersection(Point2D p1,
Point2D p2,
Point2D p3,
Point2D p4)
Computes the intersection point of the two (infinite) lines going through p1 and p2 for the first one, and p3 and p4 for the second one. |
Point2D |
Line2D.getOtherPoint(Point2D point)
Return the opposite vertex of the edge. |
Point2D |
AbstractLine2D.getSymmetric(Point2D p)
Return the symmetric of point p relative to this straight line. |
boolean |
Line2D.isInside(Point2D point)
|
boolean |
AbstractLine2D.isInside(Point2D p)
Returns true if the given point lies to the left of the line when traveling along the line in the direction given by its direction vector. |
Point2D |
LineSegment2D.opposite(Point2D point)
Returns the opposite vertex of the edge. |
StraightLine2D |
Line2D.parallel(Point2D point)
Creates a straight line parallel to this object, and passing through the given point. |
StraightLine2D |
StraightLine2D.parallel(Point2D point)
Returns a new Straight line, parallel to another straight object (ray, straight line or edge), and going through the given point. |
StraightLine2D |
AbstractLine2D.parallel(Point2D point)
Creates a straight line parallel to this object, and going through the given point. |
StraightLine2D |
Line2D.perpendicular(Point2D point)
Creates a straight line perpendicular to this object, and passing through the given point. |
StraightLine2D |
StraightLine2D.perpendicular(Point2D point)
Returns a new Straight line, parallel to another straight object (ray, straight line or edge), and going through the given point. |
StraightLine2D |
AbstractLine2D.perpendicular(Point2D point)
Creates a straight line perpendicular to this object, and going through the given point. |
double |
Line2D.position(Point2D point)
Returns the position of the point on the line. |
double |
AbstractLine2D.position(Point2D point)
Returns the position of the point on the line arc. |
double |
AbstractLine2D.positionOnLine(Point2D point)
|
double |
Line2D.project(Point2D point)
|
double |
AbstractLine2D.project(Point2D point)
Returns the position of the closest point on the line arc. |
Point2D |
AbstractLine2D.projectedPoint(Point2D p)
Returns the projection of point p on the line. |
void |
Line2D.setPoint1(Point2D point)
|
void |
Line2D.setPoint2(Point2D point)
|
double |
Line2D.signedDistance(Point2D p)
|
double |
AbstractLine2D.signedDistance(Point2D p)
Returns the signed distance of the StraightObject2d to the given point. |
double |
Line2D.windingAngle(Point2D point)
|
double |
StraightLine2D.windingAngle(Point2D point)
|
double |
AbstractLine2D.windingAngle(Point2D point)
|
Constructors in math.geom2d.line with parameters of type Point2D | |
---|---|
InvertedRay2D(Point2D point,
double angle)
Creates a new Ray2D, originating from point point<\code>, and going
in the direction specified by |
|
InvertedRay2D(Point2D point,
double dx,
double dy)
Creates a new Ray2D, originating from point point<\code>, and going
in the direction defined by vector |
|
InvertedRay2D(Point2D point1,
Point2D point2)
Creates a new Ray2D, originating from point1<\code>, and going in the
direction of |
|
InvertedRay2D(Point2D point,
Vector2D vector)
Creates a new Ray2D, originating from point point<\code>, and going
in the direction specified by |
|
Line2D(Point2D point1,
Point2D point2)
Define a new Line2D with two extremities. |
|
LineArc2D(Point2D point1,
Point2D point2,
double t0,
double t1)
|
|
LineSegment2D(Point2D point1,
Point2D point2)
Defines a new Edge with two extremities. |
|
Ray2D(Point2D point,
double angle)
Creates a new Ray2D, originating from point point<\code>, and going
in the direction specified by |
|
Ray2D(Point2D point,
double dx,
double dy)
Creates a new Ray2D, originating from point point<\code>, and going
in the direction defined by vector |
|
Ray2D(Point2D point1,
Point2D point2)
Creates a new Ray2D, originating from point1<\code>, and going in the
direction of |
|
Ray2D(Point2D point,
Vector2D vector)
Creates a new Ray2D, originating from point point<\code>, and going
in the direction specified by |
|
StraightLine2D(LinearShape2D line,
Point2D point)
Defines a new Straight line, parallel to another straigth object (ray, straight line or edge), and going through the given point. |
|
StraightLine2D(Point2D point,
double angle)
Defines a new Straight line going through the given point, and with the specified direction given by angle. |
|
StraightLine2D(Point2D point,
double dx,
double dy)
Defines a new Straight line going through the given point, and with the specified direction vector. |
|
StraightLine2D(Point2D point1,
Point2D point2)
Defines a new Straight line going through the two given points. |
|
StraightLine2D(Point2D point,
Vector2D direction)
Defines a new Straight line going through the given point, and with the specified direction vector. |
Uses of Point2D in math.geom2d.point |
---|
Methods in math.geom2d.point with type parameters of type Point2D | ||
---|---|---|
static
|
PointSets2D.countMultipleVertices(java.util.List<T> points)
Counts the number of multiple vertices in this point list. |
|
static
|
PointSets2D.countMultipleVertices(java.util.List<T> points,
boolean closed)
Counts the number of multiple vertices in this point list. |
|
static
|
PointArray2D.create(java.util.Collection<T> points)
|
|
static
|
PointArray2D.create(T... points)
|
|
static
|
PointSets2D.filterMultipleVertices(java.util.List<T> vertices)
|
|
static
|
PointSets2D.filterMultipleVertices(java.util.List<T> vertices,
boolean closed)
|
|
static
|
PointSets2D.hasMultipleVertices(java.util.List<T> points)
Tests if the given list of points contains multiple vertices. |
|
static
|
PointSets2D.hasMultipleVertices(java.util.List<T> points,
boolean closed)
Tests if the given list of points contains multiple vertices. |
Methods in math.geom2d.point that return Point2D | |
---|---|
Point2D |
PointArray2D.get(int index)
|
Point2D |
KDTree2D.Node.getPoint()
|
Point2D |
KDTree2D.nearestNeighbor(Point2D point)
|
Point2D |
PointArray2D.remove(int index)
|
Methods in math.geom2d.point that return types with arguments of type Point2D | |
---|---|
java.util.Iterator<Point2D> |
PointArray2D.iterator()
|
java.util.Collection<Point2D> |
PointSet2D.points()
Returns the collection of points contained in this set. |
java.util.Collection<Point2D> |
PointArray2D.points()
return an iterator on the internal point collection. |
java.util.Collection<Point2D> |
PointShape2D.points()
Returns the points in the shape as a collection. |
java.util.Collection<Point2D> |
KDTree2D.rangeSearch(Box2D range)
|
Methods in math.geom2d.point with parameters of type Point2D | ||
---|---|---|
void |
PointArray2D.add(int index,
Point2D point)
|
|
boolean |
PointSet2D.add(Point2D point)
Adds a new point to the point set. |
|
boolean |
PointArray2D.add(Point2D point)
Add a new point to the set of point. |
|
void |
KDTree2D.add(Point2D point)
|
|
void |
PointArray2D.addAll(Point2D[] points)
Add a series of points |
|
boolean |
PointArray2D.contains(Point2D point)
|
|
boolean |
KDTree2D.contains(Point2D value)
|
|
static
|
PointArray2D.create(T... points)
|
|
double |
PointArray2D.distance(Point2D p)
Return distance to the closest point of the collection |
|
KDTree2D.Node |
KDTree2D.getNode(Point2D point)
|
|
int |
PointArray2D.indexOf(Point2D point)
|
|
Point2D |
KDTree2D.nearestNeighbor(Point2D point)
|
|
boolean |
PointArray2D.remove(Point2D point)
|
Method parameters in math.geom2d.point with type arguments of type Point2D | |
---|---|
void |
PointSet2D.addAll(java.util.Collection<? extends Point2D> points)
Add a series of points |
void |
PointArray2D.addAll(java.util.Collection<? extends Point2D> points)
|
Constructors in math.geom2d.point with parameters of type Point2D | |
---|---|
KDTree2D.Node(Point2D point)
|
|
KDTree2D.Node(Point2D point,
KDTree2D.Node left,
KDTree2D.Node right)
|
|
PointArray2D(Point2D... points)
Instances of Point2D are directly added, other Point are converted to Point2D with the same location. |
Constructor parameters in math.geom2d.point with type arguments of type Point2D | |
---|---|
KDTree2D(java.util.ArrayList<Point2D> points)
|
|
PointArray2D(java.util.Collection<? extends Point2D> points)
Points must be a collection of java.awt.Point. |
Uses of Point2D in math.geom2d.polygon |
---|
Methods in math.geom2d.polygon that return Point2D | |
---|---|
Point2D |
HRectangle2D.centroid()
Deprecated. Computes the centroid (center of mass) of the polygon. |
Point2D |
MultiPolygon2D.centroid()
Computes the centroid (center of mass) of the polygon. |
Point2D |
Rectangle2D.centroid()
Computes the centroid (center of mass) of this rectangle. |
Point2D |
Polygon2D.centroid()
Returns the centroid (center of mass) of the polygon. |
Point2D |
SimplePolygon2D.centroid()
Computes the centroid (center of mass) of the polygon. |
static Point2D |
Polygons2D.computeCentroid(LinearRing2D ring)
Computes the centroid of the given linear ring. |
static Point2D |
Polygons2D.computeCentroid(Polygon2D polygon)
Computes the centroid of the given polygon. |
Point2D |
LinearCurve2D.firstPoint()
Returns the first point of the linear curve. |
Point2D |
LinearRing2D.lastPoint()
Returns the first point, as this is the same as the last point. |
Point2D |
Polyline2D.lastPoint()
Returns the last point of this polyline, or null if the polyline does not contain any point. |
Point2D |
LinearRing2D.point(double t)
Returns point from position as double. |
Point2D |
Polyline2D.point(double t)
|
Point2D |
LinearCurve2D.removeVertex(int index)
Removes the vertex specified by the index. |
Point2D |
HRectangle2D.vertex(int i)
Deprecated. Returns the i-th vertex of the polygon. |
Point2D |
MultiPolygon2D.vertex(int i)
Returns the i-th vertex of the polygon. |
Point2D |
Rectangle2D.vertex(int i)
Returns the i-th vertex of the polygon. |
Point2D |
Polygon2D.vertex(int i)
Returns the i-th vertex of the polygon. |
Point2D |
LinearCurve2D.vertex(int i)
Returns the i-th vertex of the polyline. |
Point2D |
SimplePolygon2D.vertex(int i)
Returns the i-th vertex of the polygon. |
Point2D[] |
LinearCurve2D.vertexArray()
Returns the collection of vertices as an array of Point2D. |
Methods in math.geom2d.polygon that return types with arguments of type Point2D | |
---|---|
static java.util.Collection<Point2D> |
Polylines2D.intersect(LinearCurve2D poly1,
LinearCurve2D poly2)
Return all intersection points between the 2 polylines. |
java.util.Collection<Point2D> |
LinearCurve2D.intersections(LinearShape2D line)
|
java.util.Collection<Point2D> |
LinearCurve2D.singularPoints()
|
java.util.Iterator<Point2D> |
LinearCurve2D.vertexIterator()
Returns an iterator on the collection of points. |
java.util.Collection<Point2D> |
HRectangle2D.vertices()
Deprecated. |
java.util.Collection<Point2D> |
MultiPolygon2D.vertices()
|
java.util.Collection<Point2D> |
Rectangle2D.vertices()
Returns the vertices of the rectangle as a collection of points. |
java.util.Collection<Point2D> |
Polygon2D.vertices()
Returns the vertices (singular points) of the polygon |
java.util.Collection<Point2D> |
LinearCurve2D.vertices()
Returns the vertices of the polyline. |
java.util.Collection<Point2D> |
SimplePolygon2D.vertices()
Returns the points of the polygon. |
Methods in math.geom2d.polygon with parameters of type Point2D | |
---|---|
void |
HRectangle2D.addVertex(Point2D point)
Deprecated. |
void |
MultiPolygon2D.addVertex(Point2D position)
Adds a vertex at the end of the last ring of this polygon. |
void |
Rectangle2D.addVertex(Point2D point)
|
void |
Polygon2D.addVertex(Point2D point)
Adds a vertex as last vertex of this polygon. |
boolean |
LinearCurve2D.addVertex(Point2D vertex)
Adds a vertex at the end of this polyline. |
void |
SimplePolygon2D.addVertex(Point2D point)
Adds a point as the last vertex. |
int |
HRectangle2D.closestVertexIndex(Point2D point)
Deprecated. Computes the index of the closest vertex to the input point. |
int |
MultiPolygon2D.closestVertexIndex(Point2D point)
Computes the index of the closest vertex to the input point. |
int |
Rectangle2D.closestVertexIndex(Point2D point)
Computes the index of the closest vertex to the input point. |
int |
Polygon2D.closestVertexIndex(Point2D point)
Returns the index of the closest vertex to the input point. |
int |
LinearCurve2D.closestVertexIndex(Point2D point)
Computes the index of the closest vertex to the input point. |
int |
SimplePolygon2D.closestVertexIndex(Point2D point)
Computes the index of the closest vertex to the input point. |
boolean |
HRectangle2D.contains(Point2D p)
Deprecated. |
boolean |
MultiPolygon2D.contains(Point2D point)
|
boolean |
Rectangle2D.contains(Point2D point)
Checks if this rectangle contains the given point. |
boolean |
LinearCurve2D.contains(Point2D point)
|
boolean |
SimplePolygon2D.contains(Point2D p)
Returns true if the point p lies inside the polygon, with precision given by Shape2D.ACCURACY. |
static LinearRing2D |
LinearRing2D.create(Point2D... vertices)
Static factory for creating a new LinearRing2D from an array of points. |
static Polyline2D |
Polyline2D.create(Point2D... points)
Static factory for creating a new Polyline2D from an array of points. |
static SimplePolygon2D |
SimplePolygon2D.create(Point2D... points)
Static factory for creating a new SimplePolygon2D from an array of points. |
static SimplePolygon2D |
Polygons2D.createCenteredRectangle(Point2D center,
double length,
double width)
Creates a new polygon representing a rectangle centered around a point. |
static SimplePolygon2D |
Polygons2D.createOrientedRectangle(Point2D center,
double length,
double width,
double theta)
Creates a new polygon representing an oriented rectangle centered around a point. |
static SimplePolygon2D |
Polygons2D.createRectangle(Point2D p1,
Point2D p2)
Creates a new polygon representing a rectangle with edges parallel to the main directions, and having the two specified opposite corners. |
double |
HRectangle2D.distance(Point2D p)
Deprecated. Returns the distance of the point to the polygon. |
double |
MultiPolygon2D.distance(Point2D p)
|
double |
Rectangle2D.distance(Point2D p)
Returns the distance of the point to the polygon. |
double |
LinearCurve2D.distance(Point2D point)
|
double |
SimplePolygon2D.distance(Point2D p)
Returns the distance of the point to the polygon. |
void |
HRectangle2D.insertVertex(int i,
Point2D point)
Deprecated. |
void |
MultiPolygon2D.insertVertex(int index,
Point2D point)
Inserts a vertex at the given position |
void |
Rectangle2D.insertVertex(int i,
Point2D point)
|
void |
Polygon2D.insertVertex(int index,
Point2D point)
Inserts a vertex at the specified position. |
void |
LinearCurve2D.insertVertex(int index,
Point2D vertex)
Inserts a vertex at a given position in the polyline. |
void |
SimplePolygon2D.insertVertex(int index,
Point2D point)
Adds a point as the last vertex. |
boolean |
LinearRing2D.isInside(Point2D point)
|
boolean |
Polyline2D.isInside(Point2D pt)
|
double |
LinearCurve2D.position(Point2D point)
|
double |
LinearCurve2D.project(Point2D point)
|
boolean |
LinearCurve2D.removeVertex(Point2D vertex)
Removes the first instance of the given vertex from this polyline. |
boolean |
SimplePolygon2D.removeVertex(Point2D point)
Removes a vertex of the polygon. |
void |
HRectangle2D.setVertex(int i,
Point2D point)
Deprecated. |
void |
MultiPolygon2D.setVertex(int i,
Point2D point)
Sets the position of the i-th vertex of this polygon. |
void |
Rectangle2D.setVertex(int i,
Point2D point)
|
void |
Polygon2D.setVertex(int i,
Point2D point)
Sets the position of the i-th vertex |
void |
LinearCurve2D.setVertex(int index,
Point2D position)
Changes the position of the i-th vertex. |
void |
SimplePolygon2D.setVertex(int index,
Point2D position)
Changes the position of the i-th vertex. |
double |
LinearCurve2D.signedDistance(Point2D point)
|
double |
LinearRing2D.windingAngle(Point2D point)
|
double |
Polyline2D.windingAngle(Point2D point)
|
static int |
Polygons2D.windingNumber(java.util.Collection<Point2D> vertices,
Point2D point)
Computes the winding number of the polygon. |
Method parameters in math.geom2d.polygon with type arguments of type Point2D | |
---|---|
static LinearRing2D |
LinearRing2D.create(java.util.Collection<? extends Point2D> points)
Static factory for creating a new LinearRing2D from a collection of points. |
static Polyline2D |
Polyline2D.create(java.util.Collection<? extends Point2D> points)
Static factory for creating a new Polyline2D from a collection of points. |
static SimplePolygon2D |
SimplePolygon2D.create(java.util.Collection<? extends Point2D> points)
Static factory for creating a new SimplePolygon2D from a collection of points. |
static int |
Polygons2D.windingNumber(java.util.Collection<Point2D> vertices,
Point2D point)
Computes the winding number of the polygon. |
Constructors in math.geom2d.polygon with parameters of type Point2D | |
---|---|
HRectangle2D(Point2D point,
double w,
double h)
Deprecated. Main constructor |
|
LinearRing2D(Point2D... vertices)
|
|
LinearRing2D(Point2D initialPoint)
|
|
Polyline2D(Point2D... vertices)
|
|
Polyline2D(Point2D initialPoint)
|
|
Rectangle2D(Point2D p1,
Point2D p2)
Creates a rectangle from two corner points. |
|
SimplePolygon2D(Point2D... vertices)
Constructor from an array of points |
Constructor parameters in math.geom2d.polygon with type arguments of type Point2D | |
---|---|
LinearRing2D(java.util.Collection<? extends Point2D> points)
|
|
Polyline2D(java.util.Collection<? extends Point2D> vertices)
|
|
SimplePolygon2D(java.util.Collection<? extends Point2D> points)
|
Uses of Point2D in math.geom2d.polygon.convhull |
---|
Method parameters in math.geom2d.polygon.convhull with type arguments of type Point2D | |
---|---|
Polygon2D |
GrahamScan2D.convexHull(java.util.Collection<? extends Point2D> points)
|
Polygon2D |
JarvisMarch2D.convexHull(java.util.Collection<? extends Point2D> points)
Computes the convex hull of a set of points as a single Polygon2D. |
Polygon2D |
ConvexHull2D.convexHull(java.util.Collection<? extends Point2D> points)
Computes the convex hull of the given collection of points. |
Uses of Point2D in math.geom2d.spline |
---|
Methods in math.geom2d.spline that return Point2D | |
---|---|
Point2D |
CubicBezierCurve2D.firstPoint()
Returns the first point of the curve. |
Point2D |
QuadBezierCurve2D.firstPoint()
Returns the first point of the curve, that corresponds to the first control point. |
Point2D |
QuadBezierCurve2D.getControl()
|
Point2D |
CubicBezierCurve2D.getControl1()
|
Point2D |
CubicBezierCurve2D.getControl2()
|
Point2D |
QuadBezierCurve2D.getCtrl()
|
Point2D |
CubicBezierCurve2D.getCtrlP1()
|
Point2D |
CubicBezierCurve2D.getCtrlP2()
|
Point2D |
CubicBezierCurve2D.getP1()
|
Point2D |
QuadBezierCurve2D.getP1()
|
Point2D |
CubicBezierCurve2D.getP2()
|
Point2D |
QuadBezierCurve2D.getP2()
|
Point2D |
CubicBezierCurve2D.lastPoint()
Returns the last point of the curve. |
Point2D |
QuadBezierCurve2D.lastPoint()
Returns the last point of the curve, that corresponds to the third control point. |
Point2D |
CubicBezierCurve2D.point(double t)
|
Point2D |
QuadBezierCurve2D.point(double t)
|
Methods in math.geom2d.spline that return types with arguments of type Point2D | |
---|---|
java.util.Collection<Point2D> |
CubicBezierCurve2D.intersections(LinearShape2D line)
Use approximation, by replacing Bezier curve with a polyline. |
java.util.Collection<Point2D> |
QuadBezierCurve2D.intersections(LinearShape2D line)
Use approximation, by replacing Bezier curve with a polyline. |
Methods in math.geom2d.spline with parameters of type Point2D | |
---|---|
boolean |
CubicBezierCurve2D.contains(Point2D p)
|
boolean |
QuadBezierCurve2D.contains(Point2D p)
|
static PolyCubicBezierCurve2D |
PolyCubicBezierCurve2D.create(Point2D... points)
Creates a series a cubic bezier curves, by grouping 4 adjacent points. |
static PolyCubicBezierCurve2D |
PolyCubicBezierCurve2D.create(Point2D[] points,
Vector2D[] vectors)
Creates a series a cubic bezier curves, by grouping consecutive couples of points and vectors. |
static QuadBezierCurve2D |
QuadBezierCurve2D.create(Point2D p1,
Point2D p2,
Point2D p3)
Deprecated. since 0.11.1 |
static CubicBezierCurve2D |
CubicBezierCurve2D.create(Point2D p1,
Point2D c1,
Point2D c2,
Point2D p2)
Deprecated. since 0.11.1 |
static CubicBezierCurve2D |
CubicBezierCurve2D.create(Point2D p1,
Vector2D v1,
Point2D p2,
Vector2D v2)
Deprecated. since 0.11.1 |
double |
CubicBezierCurve2D.distance(Point2D p)
|
double |
QuadBezierCurve2D.distance(Point2D p)
|
boolean |
CubicBezierCurve2D.isInside(Point2D pt)
Returns true if the point is 'inside' the domain bounded by the curve. |
boolean |
QuadBezierCurve2D.isInside(Point2D pt)
Returns true if the point is 'inside' the domain bounded by the curve. |
double |
CubicBezierCurve2D.position(Point2D point)
Computes position by approximating cubic spline with a polyline. |
double |
QuadBezierCurve2D.position(Point2D point)
Computes position by approximating cubic spline with a polyline. |
double |
CubicBezierCurve2D.project(Point2D point)
Computes position by approximating cubic spline with a polyline. |
double |
QuadBezierCurve2D.project(Point2D point)
Computes position by approximating cubic spline with a polyline. |
double |
CubicBezierCurve2D.signedDistance(Point2D point)
|
double |
QuadBezierCurve2D.signedDistance(Point2D point)
|
double |
CubicBezierCurve2D.windingAngle(Point2D point)
Use winding angle of approximated polyline |
double |
QuadBezierCurve2D.windingAngle(Point2D point)
Use winding angle of approximated polyline |
Constructors in math.geom2d.spline with parameters of type Point2D | |
---|---|
CubicBezierCurve2D(Point2D p1,
Point2D ctrl1,
Point2D ctrl2,
Point2D p2)
Build a new Bezier curve of degree 3 by specifying position of extreme points and position of 2 control points. |
|
CubicBezierCurve2D(Point2D p1,
Vector2D v1,
Point2D p2,
Vector2D v2)
Build a new Bezier curve of degree 3 by specifying position and tangent of first and last points. |
|
QuadBezierCurve2D(Point2D[] pts)
|
|
QuadBezierCurve2D(Point2D p1,
Point2D ctrl,
Point2D p2)
Build a new quadratic Bezier curve by specifying position of extreme points and position of control point. |
Uses of Point2D in math.geom2d.transform |
---|
Methods in math.geom2d.transform that return Point2D | |
---|---|
Point2D |
CircleInversion2D.center()
|
Point2D |
Transform2D.transform(Point2D src)
Transforms a point |
Point2D |
CircleInversion2D.transform(Point2D pt)
|
Point2D[] |
Transform2D.transform(Point2D[] src,
Point2D[] dst)
Transforms an array of points, and returns the transformed points. |
Point2D[] |
CircleInversion2D.transform(Point2D[] src,
Point2D[] dst)
Transforms an array of points, and returns the transformed points. |
Methods in math.geom2d.transform with parameters of type Point2D | |
---|---|
static CircleInversion2D |
CircleInversion2D.create(Point2D center,
double radius)
|
Point2D |
Transform2D.transform(Point2D src)
Transforms a point |
Point2D |
CircleInversion2D.transform(Point2D pt)
|
Point2D[] |
Transform2D.transform(Point2D[] src,
Point2D[] dst)
Transforms an array of points, and returns the transformed points. |
Point2D[] |
Transform2D.transform(Point2D[] src,
Point2D[] dst)
Transforms an array of points, and returns the transformed points. |
Point2D[] |
CircleInversion2D.transform(Point2D[] src,
Point2D[] dst)
Transforms an array of points, and returns the transformed points. |
Point2D[] |
CircleInversion2D.transform(Point2D[] src,
Point2D[] dst)
Transforms an array of points, and returns the transformed points. |
Constructors in math.geom2d.transform with parameters of type Point2D | |
---|---|
CircleInversion2D(Point2D center,
double radius)
|
Uses of Point2D in math.geom3d.plane |
---|
Methods in math.geom3d.plane that return Point2D | |
---|---|
Point2D |
Plane3D.pointPosition(Point3D point)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |