Package | Description |
---|---|
pythagoras.d |
The Pythagoras geometry utility classes specialized on
double . |
Modifier and Type | Method and Description |
---|---|
Point |
IPoint.add(double x,
double y)
Translates this point by the specified offset.
|
Point |
AbstractPoint.add(double x,
double y) |
Point |
IPoint.add(double x,
double y,
Point result)
Translates this point by the specified offset and stores the result in the object provided.
|
Point |
AbstractPoint.add(double x,
double y,
Point result) |
Point |
IPoint.add(XY other,
Point result)
Translates this point by the specified offset and stores the result in the object provided.
|
Point |
AbstractPoint.add(XY other,
Point result) |
Point |
Point.addLocal(double dx,
double dy)
Translates this point by the specified offset.
|
Point |
RectangularShape.center() |
Point |
IRectangularShape.center()
Returns the center of the framing rectangle.
|
Point |
IPoint.clone()
Returns a mutable copy of this point.
|
Point |
AbstractPoint.clone() |
static Point |
Rectangles.closestInteriorPoint(IRectangle r,
IPoint p)
Computes and returns the point inside the bounds of the rectangle that's closest to the
given point.
|
static Point |
Rectangles.closestInteriorPoint(IRectangle r,
IPoint p,
Point out)
Computes the point inside the bounds of the rectangle that's closest to the given point,
writing the result into
out . |
Point |
IQuadCurve.ctrlP()
Returns a copy of the control point of this curve.
|
Point |
AbstractQuadCurve.ctrlP() |
Point |
ICubicCurve.ctrlP1()
Returns a copy of the first control point of this curve.
|
Point |
AbstractCubicCurve.ctrlP1() |
Point |
ICubicCurve.ctrlP2()
Returns a copy of the second control point of this curve.
|
Point |
AbstractCubicCurve.ctrlP2() |
Point |
Path.currentPoint() |
Point |
IArc.endPoint()
Returns the intersection of the ray from the center (defined by the starting angle plus the
angular extent of the arc) and the elliptical boundary of the arc.
|
Point |
AbstractArc.endPoint() |
Point |
IArc.endPoint(Point target)
Writes the intersection of the ray from the center (defined by the starting angle plus the
angular extent of the arc) and the elliptical boundary of the arc into
target . |
Point |
AbstractArc.endPoint(Point target) |
static Point |
Points.inverseTransform(double x,
double y,
double sx,
double sy,
double rotation,
double tx,
double ty,
Point result)
Inverse transforms a point as specified, storing the result in the point provided.
|
Point |
Transform.inverseTransform(IPoint p,
Point into)
Inverse transforms the supplied point, writing the result into
into . |
Point |
IdentityTransform.inverseTransform(IPoint p,
Point into) |
Point |
AffineTransform.inverseTransform(IPoint p,
Point into) |
Point |
IRectangle.location()
Returns a copy of this rectangle's upper-left corner.
|
Point |
AbstractRectangle.location() |
Point |
IRectangle.location(Point target)
Initializes the supplied point with this rectangle's upper-left corner.
|
Point |
AbstractRectangle.location(Point target) |
Point |
RectangularShape.max() |
Point |
IRectangularShape.max()
Returns the maximum x,y-coordinate of the framing rectangle.
|
Point |
RectangularShape.min() |
Point |
IRectangularShape.min()
Returns the minimum x,y-coordinate of the framing rectangle.
|
Point |
IPoint.mult(double s)
Multiplies this point by a scale factor.
|
Point |
AbstractPoint.mult(double s) |
Point |
IPoint.mult(double s,
Point result)
Multiplies this point by a scale factor and places the result in the supplied object.
|
Point |
AbstractPoint.mult(double s,
Point result) |
Point |
Point.multLocal(double s)
Multiplies this point by a scale factor.
|
Point |
IQuadCurve.p1()
Returns a copy of the starting point of this curve.
|
Point |
ILine.p1()
Returns a copy of the starting point of this line.
|
Point |
ICubicCurve.p1()
Returns a copy of the starting point of this curve.
|
Point |
AbstractQuadCurve.p1() |
Point |
AbstractLine.p1() |
Point |
AbstractCubicCurve.p1() |
Point |
ILine.p1(Point target)
Initializes the supplied point with this line's starting point.
|
Point |
AbstractLine.p1(Point target) |
Point |
IQuadCurve.p2()
Returns a copy of the ending point of this curve.
|
Point |
ILine.p2()
Returns a copy of the ending point of this line.
|
Point |
ICubicCurve.p2()
Returns a copy of the ending point of this curve.
|
Point |
AbstractQuadCurve.p2() |
Point |
AbstractLine.p2() |
Point |
AbstractCubicCurve.p2() |
Point |
ILine.p2(Point target)
Initializes the supplied point with this line's ending point.
|
Point |
AbstractLine.p2(Point target) |
Point |
IPoint.rotate(double angle)
Rotates this point around the origin by the specified angle.
|
Point |
AbstractPoint.rotate(double angle) |
Point |
IPoint.rotate(double angle,
Point result)
Rotates this point around the origin by the specified angle, storing the result in the
point provided.
|
Point |
AbstractPoint.rotate(double angle,
Point result) |
Point |
Point.rotateLocal(double angle)
Rotates this point in-place by the specified angle.
|
Point |
Point.set(double x,
double y)
Sets the coordinates of this point to the supplied values.
|
Point |
Point.set(XY p)
Sets the coordinates of this point to be equal to those of the supplied point.
|
Point |
IArc.startPoint()
Returns the intersection of the ray from the center (defined by the starting angle) and the
elliptical boundary of the arc.
|
Point |
AbstractArc.startPoint() |
Point |
IArc.startPoint(Point target)
Writes the intersection of the ray from the center (defined by the starting angle) and the
elliptical boundary of the arc into
target . |
Point |
AbstractArc.startPoint(Point target) |
Point |
IPoint.subtract(double x,
double y)
Subtracts the supplied point from
this . |
Point |
AbstractPoint.subtract(double x,
double y) |
Point |
IPoint.subtract(double x,
double y,
Point result)
Subtracts the supplied point from
this and stores the result in result . |
Point |
AbstractPoint.subtract(double x,
double y,
Point result) |
Point |
IPoint.subtract(XY other,
Point result)
Subtracts the supplied point from
this and stores the result in result . |
Point |
AbstractPoint.subtract(XY other,
Point result) |
Point |
Point.subtractLocal(double x,
double y)
Subtracts the supplied x/y from this point.
|
static Point |
Points.transform(double x,
double y,
double sx,
double sy,
double sina,
double cosa,
double tx,
double ty,
Point result)
Transforms a point as specified, storing the result in the point provided.
|
static Point |
Points.transform(double x,
double y,
double sx,
double sy,
double rotation,
double tx,
double ty,
Point result)
Transforms a point as specified, storing the result in the point provided.
|
Point |
Transform.transform(IPoint p,
Point into)
Transforms the supplied point, writing the result into
into . |
Point |
IdentityTransform.transform(IPoint p,
Point into) |
Point |
AffineTransform.transform(IPoint p,
Point into) |
Modifier and Type | Method and Description |
---|---|
Point |
IPoint.add(double x,
double y,
Point result)
Translates this point by the specified offset and stores the result in the object provided.
|
Point |
AbstractPoint.add(double x,
double y,
Point result) |
Point |
IPoint.add(XY other,
Point result)
Translates this point by the specified offset and stores the result in the object provided.
|
Point |
AbstractPoint.add(XY other,
Point result) |
static Point |
Rectangles.closestInteriorPoint(IRectangle r,
IPoint p,
Point out)
Computes the point inside the bounds of the rectangle that's closest to the given point,
writing the result into
out . |
Point |
IArc.endPoint(Point target)
Writes the intersection of the ray from the center (defined by the starting angle plus the
angular extent of the arc) and the elliptical boundary of the arc into
target . |
Point |
AbstractArc.endPoint(Point target) |
static Point |
Points.inverseTransform(double x,
double y,
double sx,
double sy,
double rotation,
double tx,
double ty,
Point result)
Inverse transforms a point as specified, storing the result in the point provided.
|
Point |
Transform.inverseTransform(IPoint p,
Point into)
Inverse transforms the supplied point, writing the result into
into . |
Point |
IdentityTransform.inverseTransform(IPoint p,
Point into) |
Point |
AffineTransform.inverseTransform(IPoint p,
Point into) |
Point |
IRectangle.location(Point target)
Initializes the supplied point with this rectangle's upper-left corner.
|
Point |
AbstractRectangle.location(Point target) |
Point |
IPoint.mult(double s,
Point result)
Multiplies this point by a scale factor and places the result in the supplied object.
|
Point |
AbstractPoint.mult(double s,
Point result) |
Point |
ILine.p1(Point target)
Initializes the supplied point with this line's starting point.
|
Point |
AbstractLine.p1(Point target) |
Point |
ILine.p2(Point target)
Initializes the supplied point with this line's ending point.
|
Point |
AbstractLine.p2(Point target) |
Point |
IPoint.rotate(double angle,
Point result)
Rotates this point around the origin by the specified angle, storing the result in the
point provided.
|
Point |
AbstractPoint.rotate(double angle,
Point result) |
Point |
IArc.startPoint(Point target)
Writes the intersection of the ray from the center (defined by the starting angle) and the
elliptical boundary of the arc into
target . |
Point |
AbstractArc.startPoint(Point target) |
Point |
IPoint.subtract(double x,
double y,
Point result)
Subtracts the supplied point from
this and stores the result in result . |
Point |
AbstractPoint.subtract(double x,
double y,
Point result) |
Point |
IPoint.subtract(XY other,
Point result)
Subtracts the supplied point from
this and stores the result in result . |
Point |
AbstractPoint.subtract(XY other,
Point result) |
static Point |
Points.transform(double x,
double y,
double sx,
double sy,
double sina,
double cosa,
double tx,
double ty,
Point result)
Transforms a point as specified, storing the result in the point provided.
|
static Point |
Points.transform(double x,
double y,
double sx,
double sy,
double rotation,
double tx,
double ty,
Point result)
Transforms a point as specified, storing the result in the point provided.
|
void |
Transform.transform(IPoint[] src,
int srcOff,
Point[] dst,
int dstOff,
int count)
Transforms the supplied points.
|
void |
IdentityTransform.transform(IPoint[] src,
int srcOff,
Point[] dst,
int dstOff,
int count) |
void |
AffineTransform.transform(IPoint[] src,
int srcOff,
Point[] dst,
int dstOff,
int count) |
Point |
Transform.transform(IPoint p,
Point into)
Transforms the supplied point, writing the result into
into . |
Point |
IdentityTransform.transform(IPoint p,
Point into) |
Point |
AffineTransform.transform(IPoint p,
Point into) |
Copyright © 2017. All rights reserved.