- add(Point2D, Point2D, Point2D) - Static method in class de.javagl.geom.Points
-
Computes the sum the given points and stores the
result in the given result point.
- addScaled(Point2D, double, Point2D, Point2D) - Static method in class de.javagl.geom.Points
-
Computes p0 + factor * p1 and stores the
result in the given result point.
- AffineTransforms - Class in de.javagl.geom
-
Utility methods related to affine transforms
- angle(Line2D, Line2D) - Static method in class de.javagl.geom.Lines
-
Computes the angle, in radians, between the given lines, as a value
between 0 and 2PI.
- angle(Point2D, Point2D, Point2D, Point2D) - Static method in class de.javagl.geom.Lines
-
Computes the angle, in radians, between the given lines, as a value
between 0 and 2PI.
- angle(double, double, double, double, double, double, double, double) - Static method in class de.javagl.geom.Lines
-
Computes the angle, in radians, between the given lines, as a value
between 0 and 2PI.
- angleToX(Line2D) - Static method in class de.javagl.geom.Lines
-
Computes the angle, in radians, that the line
has to the x axis
- angleToX(Point2D, Point2D) - Static method in class de.javagl.geom.Lines
-
Computes the angle, in radians, that the line from p0 to p1
has to the x axis
- angleToX(double, double, double, double) - Static method in class de.javagl.geom.Lines
-
Computes the angle, in radians, that the line from (x0,y0) to (x1,y1)
has to the x axis
- ArrowCreator - Class in de.javagl.geom
-
A class for creating shapes of arrows
- Arrows - Class in de.javagl.geom
-
Methods to create shapes that represent arrows
- buildHeadShape(double, double, double, double, double) - Method in class de.javagl.geom.ArrowCreator
-
Build the shape of an arrow head, based on the current settings
of this arrow creator
- buildLines(Line2D) - Method in class de.javagl.geom.ArrowCreator
-
Build a simple arrow that only consists of lines, from the start
to the end, and from the head tips to the end.
- buildLines(Point2D, Point2D) - Method in class de.javagl.geom.ArrowCreator
-
Build a simple arrow that only consists of lines, from the start
to the end, and from the head tips to the end.
- buildLines(double, double, double, double) - Method in class de.javagl.geom.ArrowCreator
-
Build a simple arrow that only consists of lines, from the start
to the end, and from the head tips to the end.
- buildShape(Line2D, double) - Method in class de.javagl.geom.ArrowCreator
-
Build the shape of an arrow, based on the current settings
of this arrow creator
- buildShape(Point2D, Point2D, double) - Method in class de.javagl.geom.ArrowCreator
-
Build the shape of an arrow, based on the current settings
of this arrow creator
- buildShape(double, double, double, double, double) - Method in class de.javagl.geom.ArrowCreator
-
Build the shape of an arrow, based on the current settings
of this arrow creator
- byAngleComparator(Point2D) - Static method in class de.javagl.geom.Points
-
Creates a comparator that compares points by the angle that the line
between the given center and the point has to the x-axis.
- byAngleComparator(double, double) - Static method in class de.javagl.geom.Points
-
Creates a comparator that compares points by the angle that the line
between the specified center and the point has to the x-axis.
- byDistanceComparator(double, double) - Static method in class de.javagl.geom.Points
-
Returns a comparator that compares points by their distance to
the specified reference point
- byDistanceComparator(Point2D) - Static method in class de.javagl.geom.Points
-
Returns a comparator that compares points by their distance to
the given reference point
- byDistanceToLineComparator(Line2D) - Static method in class de.javagl.geom.Points
-
Returns a comparator that compares points by their distance to
the specified line
- byDistanceToLineComparator(Point2D, Point2D) - Static method in class de.javagl.geom.Points
-
Returns a comparator that compares points by their distance to
the specified line
- byDistanceToLineComparator(double, double, double, double) - Static method in class de.javagl.geom.Points
-
Returns a comparator that compares points by their distance to
the specified line
- byDistanceToOriginComparator() - Static method in class de.javagl.geom.Points
-
Returns a comparator that compares points by their distance to
the origin
- CatmullRomSpline - Class in de.javagl.geom
-
Simple implementation of an open Catmull-Rom-Spline
- center(Rectangle2D, Point2D) - Static method in class de.javagl.geom.Rectangles
-
Store the center of the given rectangle in the given point,
and return it.
- colexicographicalComparator() - Static method in class de.javagl.geom.Points
-
Returns a comparator that compares points colexicographically.
- compose(Function<? super T, ? extends AffineTransform>, Function<? super T, ? extends AffineTransform>) - Static method in class de.javagl.geom.AffineTransforms
-
Creates a function that returns an affine transform that is the
concatenation of the affine transforms returned by the given
functions.
- compute(List<? extends Point2D>) - Static method in class de.javagl.geom.ConvexHull
-
Compute the list of points that form the convex hull of the given
input points.
- computeBounds(Iterable<? extends Point2D>) - Static method in class de.javagl.geom.Points
-
Compute the bounding box of the given points
- computeBounds(AffineTransform, Rectangle2D, Rectangle2D) - Static method in class de.javagl.geom.Rectangles
-
Compute the bounding rectangle of the given rectangle after it
has been transformed with the given transform, and stores it
in the given destination.
- computeCenterOfGravity(Iterable<? extends Point2D>) - Static method in class de.javagl.geom.Points
-
Computes the center of gravity of the given sequence of points.
- computeDistanceX(AffineTransform, double) - Static method in class de.javagl.geom.AffineTransforms
-
Computes the distance that two points have when they are transformed
with the given affine transform, and initially had the given distance
in x-direction
- computeDistanceY(AffineTransform, double) - Static method in class de.javagl.geom.AffineTransforms
-
Computes the distance that two points have when they are transformed
with the given affine transform, and initially had the given distance
in y-direction
- computeLength(Shape, double) - Static method in class de.javagl.geom.Shapes
-
Computes the length of the given shape (i.e. its border)
- computeLineSegments(Shape, double) - Static method in class de.javagl.geom.Shapes
-
Create a list containing line segments that approximate the given
shape.
- computeMinimumOrientedBoundingBoxCorners(List<? extends Point2D>) - Static method in class de.javagl.geom.OrientedBoundingBoxes
-
Computes the corners of the minimum oriented bounding box of the
given set of points
- computePoints(Shape, double, boolean) - Static method in class de.javagl.geom.Shapes
-
Create a list containing line points that approximate the given
shape.
- computeRelativeProjectionLocation(double, double, double, double, double, double) - Static method in class de.javagl.geom.Projections
-
Computes the relative location of the projection of the point (x,y)
on the line (x0,y0)-(x1,y1).
- computeSignedArea(Shape, double) - Static method in class de.javagl.geom.Shapes
-
Compute the (signed) area that is covered by the given shape.
- computeSubShapes(Shape) - Static method in class de.javagl.geom.Shapes
-
Computes the list of sub-shapes of the given shape.
- computeX(AffineTransform, Point2D) - Static method in class de.javagl.geom.AffineTransforms
-
Computes the x-coordinate of the given point when it is transformed
with the given affine transform
- computeX(AffineTransform, double, double) - Static method in class de.javagl.geom.AffineTransforms
-
Computes the x-coordinate of the specified point when it is transformed
with the given affine transform
- computeY(AffineTransform, Point2D) - Static method in class de.javagl.geom.AffineTransforms
-
Computes the y-coordinate of the given point when it is transformed
with the given affine transform
- computeY(AffineTransform, double, double) - Static method in class de.javagl.geom.AffineTransforms
-
Computes the y-coordinate of the specified point when it is transformed
with the given affine transform
- ConvexHull - Class in de.javagl.geom
-
Methods to compute the convex hull of a set of points
- copy(Rectangle2D) - Static method in class de.javagl.geom.Rectangles
-
Return a copy of the given rectangle
- create() - Static method in class de.javagl.geom.Arrows
-
Create a new
ArrowCreator that allows setting different
properties of the arrows, and creating the shapes of the arrows.
- create(List<? extends Point2D>, int, double) - Static method in class de.javagl.geom.CatmullRomSpline
-
Creates a new Catmull-Rom-Spline with the given control points.
- create(List<? extends Point2D>, int, double, boolean) - Static method in class de.javagl.geom.CatmullRomSpline
-
Creates a new Catmull-Rom-Spline with the given control points.
- createDeltaPathIterator(Shape, double, double) - Static method in class de.javagl.geom.PathIterators
-
Creates a path iterator over a flattening path iterator of the given
shape, but ensures that no two consecutive points have a distance
that is larger than the given delta.
- createStarShape(double, double, double, double, int) - Static method in class de.javagl.geom.Stars
-
Create a star shape from the given parameters.
- createStarShape(double, double, double, double, int, double) - Static method in class de.javagl.geom.Stars
-
Create a star shape from the given parameters.
- createStarShape(double, double, double, double, int, double, double, double) - Static method in class de.javagl.geom.Stars
-
Create a star shape from the given parameters.
- createTransformedShape(AffineTransform, Shape) - Static method in class de.javagl.geom.AffineTransforms
-
An implementation of the
AffineTransform#createTransformedShape method
that is optimized for certain simple shapes (like
Rectangle2D and Line2D): If the given
transform only consists of translation (or translation and
scaling) then a new shape will be constructed directly,
avoiding the general (but inefficient) method of creating
a Path2D.
- interpolate(Point2D, Point2D, double, Point2D) - Static method in class de.javagl.geom.Points
-
Interpolates linearly between the given points, and stores the
result in the given result point.
- interpolate(double, double, double, double, double, Point2D) - Static method in class de.javagl.geom.Points
-
Interpolates linearly between the specified points, and stores the
result in the given result point.
- interpolate(Shape, Shape, double) - Static method in class de.javagl.geom.Shapes
-
Create a shape that is created from interpolating between the
given shapes, according to the given interpolation value
- intersect(Line2D, Line2D, Point2D, Point2D) - Static method in class de.javagl.geom.Intersections.LineLine
-
Computes the intersection of the given lines.
- intersect(double, double, double, double, double, double, double, double, Point2D, Point2D) - Static method in class de.javagl.geom.Intersections.LineLine
-
Computes the intersection of the specified lines.
- intersect(Line2D, Line2D, Point2D, Point2D) - Static method in class de.javagl.geom.Intersections.SegmentSegment
-
Computes the intersection of the given lines segment.
- intersect(double, double, double, double, double, double, double, double, Point2D, Point2D) - Static method in class de.javagl.geom.Intersections.SegmentSegment
-
Computes the intersection of the specified line segments.
- Intersections - Class in de.javagl.geom
-
Utility class for computing intersections
NOTE: Preliminary.
- Intersections.LineLine - Class in de.javagl.geom
-
Class for computing intersections between lines
- Intersections.SegmentSegment - Class in de.javagl.geom
-
Class for computing intersections between line segments
- inverseTransform(AffineTransform, Point2D, Point2D) - Static method in class de.javagl.geom.Points
-
Transforms the given point with the inverse of the given transform,
and stores the result in the given destination point.
- invert(AffineTransform, AffineTransform) - Static method in class de.javagl.geom.AffineTransforms
-
Invert the given affine transform, storing the result in the
given destination.
- scale(double, Line2D, Line2D) - Static method in class de.javagl.geom.Lines
-
Scale the given line with the given factor, about its starting point,
and store the result in the given destination.
- scale(Point2D, double, Point2D) - Static method in class de.javagl.geom.Points
-
Scales the given point with the given factor and stores the
result in the given result point.
- scale(Rectangle2D, double, Rectangle2D) - Static method in class de.javagl.geom.Rectangles
-
Scale the given rectangle by the given factor, about its center,
and store the result in the given result rectangle.
- scaleToLength(double, Line2D, Line2D) - Static method in class de.javagl.geom.Lines
-
Scale the given line to have the given length about its starting
point, and store the result in the given destination.
- scaling(ToDoubleFunction<? super T>, ToDoubleFunction<? super T>) - Static method in class de.javagl.geom.AffineTransforms
-
Creates a function that returns an affine transform that performs
a scaling according to values returned by the given functions.
- scaling(ToDoubleFunction<? super T>) - Static method in class de.javagl.geom.AffineTransforms
-
Creates a function that returns an affine transform that performs
a scaling according to value returned by the given function.
- setAbsoluteHeadLength(double) - Method in class de.javagl.geom.ArrowCreator
-
Set the absolute length of the arrow head
- setAbsoluteHeadWidth(double) - Method in class de.javagl.geom.ArrowCreator
-
Set the absolute width of the arrow head
- setHeadBasePosition(double) - Method in class de.javagl.geom.ArrowCreator
-
Set the position of the head base, as a value between 0 and 1.
- setInterpolation(double) - Method in class de.javagl.geom.CatmullRomSpline
-
Set the alpha value determining the interpolation: For 0.0, the
spline is uniform.
- setRelativeHeadLength(double) - Method in class de.javagl.geom.ArrowCreator
-
Set the head length, relative to the length of the arrow,
usually as a value between 0 and 1
- setRelativeHeadLength(double, double, double) - Method in class de.javagl.geom.ArrowCreator
-
Set the head length, relative to the length of the arrow,
usually as a value between 0 and 1, but with the given
absolute bounds
- setRelativeHeadWidth(double) - Method in class de.javagl.geom.ArrowCreator
-
Set the head width, relative to the length of the arrow,
usually as a value between 0 and 1
- setRelativeHeadWidth(double, double, double) - Method in class de.javagl.geom.ArrowCreator
-
Set the head width, relative to the width of the arrow,
usually as a value between 0 and 1, but with the given
absolute bounds
- Shapes - Class in de.javagl.geom
-
Utility methods related to Shapes
- Stars - Class in de.javagl.geom
-
Methods to create star shapes
- sub(Point2D, Point2D, Point2D) - Static method in class de.javagl.geom.Points
-
Computes the difference between the given points and stores the
result in the given result point.
- toString(AffineTransform) - Static method in class de.javagl.geom.AffineTransforms
-
Creates a formatted, multi-line string representation of the
given affine transform
- toString(AffineTransform, String) - Static method in class de.javagl.geom.AffineTransforms
-
Creates a formatted, multi-line string representation of the
given affine transform, using the given format for each entry
- toString(AffineTransform, Locale, String) - Static method in class de.javagl.geom.AffineTransforms
-
Creates a formatted, multi-line string representation of the
given affine transform, using the given format for each entry
- toString(Line2D) - Static method in class de.javagl.geom.Lines
-
Creates a simple string representation of the given line
- toString(Line2D, String) - Static method in class de.javagl.geom.Lines
-
Creates a simple string representation of the given line, using
the given format for the coordinates
- toString(Point2D) - Static method in class de.javagl.geom.Points
-
Creates a short string representation of the given point
- toString(Point2D, String) - Static method in class de.javagl.geom.Points
-
Creates a short string representation of the given point, using
the given format for the coordinates
- toString(Point2D, Locale, String) - Static method in class de.javagl.geom.Points
-
Creates a short string representation of the given point, using
the given format for the coordinates
- transform(AffineTransform, Line2D, Line2D) - Static method in class de.javagl.geom.Lines
-
Transform the given line with the given transform, and store the
result in the given destination.
- transform(AffineTransform, Iterable<? extends Point2D>) - Static method in class de.javagl.geom.Points
-
Transforms all the given points with the given affine transform,
and returns the results
- translate(ToDoubleFunction<? super T>, ToDoubleFunction<? super T>) - Static method in class de.javagl.geom.AffineTransforms
-
Creates a function that returns an affine transform that performs
a translation according to values returned by the given functions.
- translate(Rectangle2D, double, double, Rectangle2D) - Static method in class de.javagl.geom.Rectangles
-
Translate the given rectangle by the specified amount,
and store the result in the given result rectangle.