Top Description Inners Fields Constructors Methods
org.apache.commons.math3.geometry.euclidean.twod

public Class Line

extends Object
implements Hyperplane<Euclidean2D>, Embedding<Euclidean2D, Euclidean1D>
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.geometry.partitioning.Embedding, org.apache.commons.math3.geometry.partitioning.Hyperplane
Imports
java.awt.geom.AffineTransform, org.apache.commons.math3.exception.MathIllegalArgumentException, org.apache.commons.math3.exception.util.LocalizedFormats, org.apache.commons.math3.geometry.Point, .Vector, org.apache.commons.math3.geometry.euclidean.oned.Euclidean1D, .IntervalsSet, .OrientedPoint, .Vector1D, org.apache.commons.math3.geometry.partitioning.Embedding, .Hyperplane, .SubHyperplane, .Transform, org.apache.commons.math3.util.FastMath, .MathArrays, .MathUtils

This class represents an oriented line in the 2D plane.

An oriented line can be defined either by prolongating a line segment between two points past these points, or by one point and an angular direction (in trigonometric orientation).

Since it is oriented the two half planes at its two sides are unambiguously identified as a left half plane and a right half plane. This can be used to identify the interior and the exterior in a simple way by local properties only when part of a line is used to define part of a polygon boundary.

A line can also be used to completely define a reference frame in the plane. It is sufficient to select one specific point in the line (the orthogonal projection of the original reference frame on the line) and to use the unit vector in the line direction and the orthogonal vector oriented from left half plane to right half plane. We define two coordinates by the process, the abscissa along the line, and the offset across the line. All points of the plane are uniquely identified by these two coordinates. The line is the set of points at zero offset, the left half plane is the set of points with negative offsets and the right half plane is the set of points with positive offsets.

Since
3.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
Line.LineTransform

Class embedding an affine transform.

Field Summary

Modifier and TypeField and Description
private double
angle

Angle with respect to the abscissa axis.

private double
cos

Cosine of the line angle.

private static final double
DEFAULT_TOLERANCE

Default value for tolerance.

private double
originOffset

Offset of the frame origin.

private Line
reverse

Reverse line.

private double
sin

Sine of the line angle.

private final double
tolerance

Tolerance below which points are considered identical.

Constructor Summary

AccessConstructor and Description
public
Line(final Vector2D
first point
p1
,
final Vector2D
second point
p2
,
final double
tolerance below which points are considered identical
tolerance
)

Build a line from two points.

public
Line(final Vector2D
point belonging to the line
p
,
final double
angle of the line with respect to abscissa axis
angle
,
final double
tolerance below which points are considered identical
tolerance
)

Build a line from a point and an angle.

private
Line(final double
angle of the line with respect to abscissa axis
angle
,
final double
cosine of the angle
cos
,
final double
sine of the angle
sin
,
final double
offset of the origin
originOffset
,
final double
tolerance below which points are considered identical
tolerance
)

Build a line from its internal characteristics.

public
Line(final Vector2D
first point
p1
,
final Vector2D
second point
p2
)
Deprecated as of 3.3, replaced with Line(Vector2D, Vector2D, double)

Build a line from two points.

public
Line(final Vector2D
point belonging to the line
p
,
final double
angle of the line with respect to abscissa axis
angle
)
Deprecated as of 3.3, replaced with Line(Vector2D, double, double)

Build a line from a point and an angle.

public
Line(final Line
line to copy
line
)

Copy constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if p belongs to the line
contains
(final Vector2D
point to check
p
)

Check if the line contains a point.

public Line
public double

Returns:

distance between the instance and the point
distance
(final Vector2D
to check
p
)

Compute the distance between the instance and a point.

public double

Returns:

the angle of the line with respect to the abscissa axis
getAngle
()

Get the angle of the line.

public double

Returns:

offset of the line
getOffset
(final Line
line to check
line
)

Get the offset (oriented distance) of a parallel line.

public double

Returns:

offset of the vector
getOffset
(Vector<Euclidean2D>
vector to check
vector
)

Get the offset (oriented distance) of a vector.

public double
getOffset(final Point<Euclidean2D>
point to check
point
)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.getOffset.

Get the offset (oriented distance) of a point.

public double

Returns:

the offset of the origin
getOriginOffset
()

Get the offset of the origin.

public Vector2D

Returns:

one point in the plane, with given abscissa and offset relative to the line
getPointAt
(final Vector1D
desired abscissa for the point
abscissa
,
final double
desired offset for the point
offset
)

Get one point from the plane.

public Line

Returns:

a new line, with orientation opposite to the instance orientation
getReverse
()

Get the reverse of the instance.

public double
getTolerance()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.getTolerance.

Get the tolerance below which points are considered to belong to the hyperplane.

public static Transform<Euclidean2D, Euclidean1D>

Returns:

a new transform that can be applied to either Vector2D, Line or SubHyperplane instances
getTransform
(final AffineTransform
affine transform to embed (must be inversible otherwise the apply(Hyperplane) method would work only for some lines, and fail for other ones)
transform
)

Get a Transform embedding an affine transform.

public static Transform<Euclidean2D, Euclidean1D>

Returns:

a new transform that can be applied to either Vector2D, Line or SubHyperplane instances
getTransform
(final double
transform factor between input abscissa and output abscissa
cXX
,
final double
transform factor between input abscissa and output ordinate
cYX
,
final double
transform factor between input ordinate and output abscissa
cXY
,
final double
transform factor between input ordinate and output ordinate
cYY
,
final double
transform addendum for output abscissa
cX1
,
final double
transform addendum for output ordinate
cY1
)

Get a Transform embedding an affine transform.

public Vector2D

Returns:

intersection point of the instance and the other line or null if there are no intersection points
intersection
(final Line
other line
other
)

Get the intersection point of the instance and another line.

public boolean

Returns:

true if the instance is parallel to the other line (they can have either the same or opposite orientations)
isParallelTo
(final Line
other line to check
line
)

Check the instance is parallel to another line.

public Point<Euclidean2D>
project(Point<Euclidean2D>
point to project
point
)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.project.

Project a point to the hyperplane.

public void
reset(final Vector2D
first point
p1
,
final Vector2D
second point
p2
)

Reset the instance as if built from two points.

public void
reset(final Vector2D
point belonging to the line
p
,
final double
angle of the line with respect to abscissa axis
alpha
)

Reset the instance as if built from a line and an angle.

public void
revertSelf()

Revert the instance.

public boolean
sameOrientationAs(final Hyperplane<Euclidean2D>
other hyperplane to check against the instance
other
)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.sameOrientationAs.

Check if the instance has the same orientation as another hyperplane.

public void
setAngle(final double
new angle of the line with respect to the abscissa axis
angle
)

Set the angle of the line.

public void
setOriginOffset(final double
offset of the origin
offset
)

Set the offset of the origin.

public Vector2D

Returns:

n-dimension point of the space corresponding to the specified sub-space point
toSpace
(Vector<Euclidean1D>
(n-1)-dimension point of the sub-space
vector
)

Transform a sub-space point into a space point.

public Vector2D
toSpace(final Point<Euclidean1D>
(n-1)-dimension point of the sub-space
point
)

Implements org.apache.commons.math3.geometry.partitioning.Embedding.toSpace.

Transform a sub-space point into a space point.

public Vector1D

Returns:

(n-1)-dimension point of the sub-space corresponding to the specified space point
toSubSpace
(Vector<Euclidean2D>
n-dimension point of the space
vector
)

Transform a space point into a sub-space point.

public Vector1D
toSubSpace(final Point<Euclidean2D>
n-dimension point of the space
point
)

Implements org.apache.commons.math3.geometry.partitioning.Embedding.toSubSpace.

Transform a space point into a sub-space point.

public void
translateToPoint(final Vector2D
point by which the line should pass
p
)

Translate the line to force it passing by a point.

private void
unlinkReverse()

Unset the link between an instance and its reverse.

public SubLine
wholeHyperplane()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.wholeHyperplane.

Build a sub-hyperplane covering the whole hyperplane.

public PolygonsSet

Returns:

a region containing the instance (really a PolygonsSet instance)
wholeSpace
()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.wholeSpace.

Build a region covering the whole space.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

angleback to summary
private double angle

Angle with respect to the abscissa axis.

cosback to summary
private double cos

Cosine of the line angle.

DEFAULT_TOLERANCEback to summary
private static final double DEFAULT_TOLERANCE

Default value for tolerance.

originOffsetback to summary
private double originOffset

Offset of the frame origin.

reverseback to summary
private Line reverse

Reverse line.

sinback to summary
private double sin

Sine of the line angle.

toleranceback to summary
private final double tolerance

Tolerance below which points are considered identical.

Constructor Detail

Lineback to summary
public Line(final Vector2D p1, final Vector2D p2, final double tolerance)

Build a line from two points.

The line is oriented from p1 to p2

Parameters
p1:Vector2D

first point

p2:Vector2D

second point

tolerance:double

tolerance below which points are considered identical

Since
3.3
Lineback to summary
public Line(final Vector2D p, final double angle, final double tolerance)

Build a line from a point and an angle.

Parameters
p:Vector2D

point belonging to the line

angle:double

angle of the line with respect to abscissa axis

tolerance:double

tolerance below which points are considered identical

Since
3.3
Lineback to summary
private Line(final double angle, final double cos, final double sin, final double originOffset, final double tolerance)

Build a line from its internal characteristics.

Parameters
angle:double

angle of the line with respect to abscissa axis

cos:double

cosine of the angle

sin:double

sine of the angle

originOffset:double

offset of the origin

tolerance:double

tolerance below which points are considered identical

Since
3.3
Lineback to summary
public Line(final Vector2D p1, final Vector2D p2)

Deprecated

as of 3.3, replaced with Line(Vector2D, Vector2D, double)

Build a line from two points.

The line is oriented from p1 to p2

Parameters
p1:Vector2D

first point

p2:Vector2D

second point

Annotations
@Deprecated
Lineback to summary
public Line(final Vector2D p, final double angle)

Deprecated

as of 3.3, replaced with Line(Vector2D, double, double)

Build a line from a point and an angle.

Parameters
p:Vector2D

point belonging to the line

angle:double

angle of the line with respect to abscissa axis

Annotations
@Deprecated
Lineback to summary
public Line(final Line line)

Copy constructor.

The created instance is completely independent from the original instance, it is a deep copy.

Parameters
line:Line

line to copy

Method Detail

containsback to summary
public boolean contains(final Vector2D p)

Check if the line contains a point.

Parameters
p:Vector2D

point to check

Returns:boolean

true if p belongs to the line

copySelfback to summary
public Line copySelf()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.copySelf.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.copySelf.

Copy the instance.

The instance created is completely independant of the original one. A deep copy is used, none of the underlying objects are shared (except for immutable objects).

Returns:Line

a new hyperplane, copy of the instance

distanceback to summary
public double distance(final Vector2D p)

Compute the distance between the instance and a point.

This is a shortcut for invoking FastMath.abs(getOffset(p)), and provides consistency with what is in the org.apache.commons.math3.geometry.euclidean.threed.Line class.

Parameters
p:Vector2D

to check

Returns:double

distance between the instance and the point

Since
3.1
getAngleback to summary
public double getAngle()

Get the angle of the line.

Returns:double

the angle of the line with respect to the abscissa axis

getOffsetback to summary
public double getOffset(final Line line)

Get the offset (oriented distance) of a parallel line.

This method should be called only for parallel lines otherwise the result is not meaningful.

The offset is 0 if both lines are the same, it is positive if the line is on the right side of the instance and negative if it is on the left side, according to its natural orientation.

Parameters
line:Line

line to check

Returns:double

offset of the line

getOffsetback to summary
public double getOffset(Vector<Euclidean2D> vector)

Get the offset (oriented distance) of a vector.

Parameters
vector:Vector<Euclidean2D>

vector to check

Returns:double

offset of the vector

getOffsetback to summary
public double getOffset(final Point<Euclidean2D> point)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.getOffset.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.getOffset.

Get the offset (oriented distance) of a point.

The offset is 0 if the point is on the underlying hyperplane, it is positive if the point is on one particular side of the hyperplane, and it is negative if the point is on the other side, according to the hyperplane natural orientation.

Parameters
point:Point<Euclidean2D>

point to check

Returns:double

offset of the point

getOriginOffsetback to summary
public double getOriginOffset()

Get the offset of the origin.

Returns:double

the offset of the origin

getPointAtback to summary
public Vector2D getPointAt(final Vector1D abscissa, final double offset)

Get one point from the plane.

Parameters
abscissa:Vector1D

desired abscissa for the point

offset:double

desired offset for the point

Returns:Vector2D

one point in the plane, with given abscissa and offset relative to the line

getReverseback to summary
public Line getReverse()

Get the reverse of the instance.

Get a line with reversed orientation with respect to the instance.

As long as neither the instance nor its reverse are modified (i.e. as long as none of the reset(Vector2D, Vector2D), reset(Vector2D, double), revertSelf(), setAngle(double) or setOriginOffset(double) methods are called), then the line and its reverse remain linked together so that line.getReverse().getReverse() == line. When one of the line is modified, the link is deleted as both instance becomes independent.

Returns:Line

a new line, with orientation opposite to the instance orientation

getToleranceback to summary
public double getTolerance()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.getTolerance.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.getTolerance.

Get the tolerance below which points are considered to belong to the hyperplane.

Returns:double

tolerance below which points are considered to belong to the hyperplane

Since
3.3
getTransformback to summary
public static Transform<Euclidean2D, Euclidean1D> getTransform(final AffineTransform transform) throws MathIllegalArgumentException

Get a Transform embedding an affine transform.

Parameters
transform:AffineTransform

affine transform to embed (must be inversible otherwise the apply(Hyperplane) method would work only for some lines, and fail for other ones)

Returns:Transform<Euclidean2D, Euclidean1D>

a new transform that can be applied to either Vector2D, Line or SubHyperplane instances

Annotations
@Deprecated
Exceptions
MathIllegalArgumentException:
if the transform is non invertible
getTransformback to summary
public static Transform<Euclidean2D, Euclidean1D> getTransform(final double cXX, final double cYX, final double cXY, final double cYY, final double cX1, final double cY1) throws MathIllegalArgumentException

Get a Transform embedding an affine transform.

Parameters
cXX:double

transform factor between input abscissa and output abscissa

cYX:double

transform factor between input abscissa and output ordinate

cXY:double

transform factor between input ordinate and output abscissa

cYY:double

transform factor between input ordinate and output ordinate

cX1:double

transform addendum for output abscissa

cY1:double

transform addendum for output ordinate

Returns:Transform<Euclidean2D, Euclidean1D>

a new transform that can be applied to either Vector2D, Line or SubHyperplane instances

Exceptions
MathIllegalArgumentException:
if the transform is non invertible
Since
3.6
intersectionback to summary
public Vector2D intersection(final Line other)

Get the intersection point of the instance and another line.

Parameters
other:Line

other line

Returns:Vector2D

intersection point of the instance and the other line or null if there are no intersection points

isParallelToback to summary
public boolean isParallelTo(final Line line)

Check the instance is parallel to another line.

Parameters
line:Line

other line to check

Returns:boolean

true if the instance is parallel to the other line (they can have either the same or opposite orientations)

projectback to summary
public Point<Euclidean2D> project(Point<Euclidean2D> point)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.project.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.project.

Project a point to the hyperplane.

Parameters
point:Point<Euclidean2D>

point to project

Returns:Point<Euclidean2D>

projected point

Since
3.3
resetback to summary
public void reset(final Vector2D p1, final Vector2D p2)

Reset the instance as if built from two points.

The line is oriented from p1 to p2

Parameters
p1:Vector2D

first point

p2:Vector2D

second point

resetback to summary
public void reset(final Vector2D p, final double alpha)

Reset the instance as if built from a line and an angle.

Parameters
p:Vector2D

point belonging to the line

alpha:double

angle of the line with respect to abscissa axis

revertSelfback to summary
public void revertSelf()

Revert the instance.

sameOrientationAsback to summary
public boolean sameOrientationAs(final Hyperplane<Euclidean2D> other)

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.sameOrientationAs.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.sameOrientationAs.

Check if the instance has the same orientation as another hyperplane.

This method is expected to be called on parallel hyperplanes. The method should not re-check for parallelism, only for orientation, typically by testing something like the sign of the dot-products of normals.

Parameters
other:Hyperplane<Euclidean2D>

other hyperplane to check against the instance

Returns:boolean

true if the instance and the other hyperplane have the same orientation

setAngleback to summary
public void setAngle(final double angle)

Set the angle of the line.

Parameters
angle:double

new angle of the line with respect to the abscissa axis

setOriginOffsetback to summary
public void setOriginOffset(final double offset)

Set the offset of the origin.

Parameters
offset:double

offset of the origin

toSpaceback to summary
public Vector2D toSpace(Vector<Euclidean1D> vector)

Transform a sub-space point into a space point.

Parameters
vector:Vector<Euclidean1D>

(n-1)-dimension point of the sub-space

Returns:Vector2D

n-dimension point of the space corresponding to the specified sub-space point

toSpaceback to summary
public Vector2D toSpace(final Point<Euclidean1D> point)

Implements org.apache.commons.math3.geometry.partitioning.Embedding.toSpace.

Doc from org.apache.commons.math3.geometry.partitioning.Embedding.toSpace.

Transform a sub-space point into a space point.

Parameters
point:Point<Euclidean1D>

(n-1)-dimension point of the sub-space

Returns:Vector2D

n-dimension point of the space corresponding to the specified sub-space point

toSubSpaceback to summary
public Vector1D toSubSpace(Vector<Euclidean2D> vector)

Transform a space point into a sub-space point.

Parameters
vector:Vector<Euclidean2D>

n-dimension point of the space

Returns:Vector1D

(n-1)-dimension point of the sub-space corresponding to the specified space point

toSubSpaceback to summary
public Vector1D toSubSpace(final Point<Euclidean2D> point)

Implements org.apache.commons.math3.geometry.partitioning.Embedding.toSubSpace.

Doc from org.apache.commons.math3.geometry.partitioning.Embedding.toSubSpace.

Transform a space point into a sub-space point.

Parameters
point:Point<Euclidean2D>

n-dimension point of the space

Returns:Vector1D

(n-1)-dimension point of the sub-space corresponding to the specified space point

translateToPointback to summary
public void translateToPoint(final Vector2D p)

Translate the line to force it passing by a point.

Parameters
p:Vector2D

point by which the line should pass

unlinkReverseback to summary
private void unlinkReverse()

Unset the link between an instance and its reverse.

wholeHyperplaneback to summary
public SubLine wholeHyperplane()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.wholeHyperplane.

Doc from org.apache.commons.math3.geometry.partitioning.Hyperplane.wholeHyperplane.

Build a sub-hyperplane covering the whole hyperplane.

Returns:SubLine

a sub-hyperplane covering the whole hyperplane

wholeSpaceback to summary
public PolygonsSet wholeSpace()

Implements org.apache.commons.math3.geometry.partitioning.Hyperplane.wholeSpace.

Build a region covering the whole space.

Returns:PolygonsSet

a region containing the instance (really a PolygonsSet instance)

org.apache.commons.math3.geometry.euclidean.twod back to summary

private Class Line.LineTransform

extends Object
implements Transform<Euclidean2D, Euclidean1D>
Class Inheritance
  • java.lang.Object
  • org.apache.commons.math3.geometry.euclidean.twod.Line.LineTransform
All Implemented Interfaces
org.apache.commons.math3.geometry.partitioning.Transform

Class embedding an affine transform.

This class is used in order to apply an affine transform to a line. Using a specific object allow to perform some computations on the transform only once even if the same transform is to be applied to a large number of lines (for example to a large polygon)./

Field Summary

Modifier and TypeField and Description
private double
c11

cXX * cYY - cYX * cXY.

private double
c1X

cXX * cY1 - cYX * cX1.

private double
c1Y

cXY * cY1 - cYY * cX1.

private double
cX1

Transform addendum for output abscissa.

private double
cXX

Transform factor between input abscissa and output abscissa.

private double
cXY

Transform factor between input ordinate and output abscissa.

private double
cY1

Transform addendum for output ordinate.

private double
cYX

Transform factor between input abscissa and output ordinate.

private double
cYY

Transform factor between input ordinate and output ordinate.

Constructor Summary

AccessConstructor and Description
pack-priv
LineTransform(final double
transform factor between input abscissa and output abscissa
cXX
,
final double
transform factor between input abscissa and output ordinate
cYX
,
final double
transform factor between input ordinate and output abscissa
cXY
,
final double
transform factor between input ordinate and output ordinate
cYY
,
final double
transform addendum for output abscissa
cX1
,
final double
transform addendum for output ordinate
cY1
)

Build an affine line transform from a n AffineTransform.

Method Summary

Modifier and TypeMethod and Description
public Vector2D
apply(final Point<Euclidean2D>
point to transform
point
)

Implements org.apache.commons.math3.geometry.partitioning.Transform.apply.

Transform a point of a space.

public Line
apply(final Hyperplane<Euclidean2D>
hyperplane to transform
hyperplane
)

Implements org.apache.commons.math3.geometry.partitioning.Transform.apply.

Transform an hyperplane of a space.

public SubHyperplane<Euclidean1D>
apply(final SubHyperplane<Euclidean1D>
sub-hyperplane to transform
sub
,
final Hyperplane<Euclidean2D>
hyperplane in which the sub-hyperplane is defined (this is the original hyperplane, the transform has not been applied to it)
original
,
final Hyperplane<Euclidean2D>
hyperplane in which the sub-hyperplane is defined (this is the transformed hyperplane, the transform has been applied to it)
transformed
)

Implements org.apache.commons.math3.geometry.partitioning.Transform.apply.

Transform a sub-hyperplane embedded in an hyperplane.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

c11back to summary
private double c11

cXX * cYY - cYX * cXY.

c1Xback to summary
private double c1X

cXX * cY1 - cYX * cX1.

c1Yback to summary
private double c1Y

cXY * cY1 - cYY * cX1.

cX1back to summary
private double cX1

Transform addendum for output abscissa.

cXXback to summary
private double cXX

Transform factor between input abscissa and output abscissa.

cXYback to summary
private double cXY

Transform factor between input ordinate and output abscissa.

cY1back to summary
private double cY1

Transform addendum for output ordinate.

cYXback to summary
private double cYX

Transform factor between input abscissa and output ordinate.

cYYback to summary
private double cYY

Transform factor between input ordinate and output ordinate.

Constructor Detail

LineTransformback to summary
pack-priv LineTransform(final double cXX, final double cYX, final double cXY, final double cYY, final double cX1, final double cY1) throws MathIllegalArgumentException

Build an affine line transform from a n AffineTransform.

Parameters
cXX:double

transform factor between input abscissa and output abscissa

cYX:double

transform factor between input abscissa and output ordinate

cXY:double

transform factor between input ordinate and output abscissa

cYY:double

transform factor between input ordinate and output ordinate

cX1:double

transform addendum for output abscissa

cY1:double

transform addendum for output ordinate

Exceptions
MathIllegalArgumentException:
if the transform is non invertible
Since
3.6

Method Detail

applyback to summary
public Vector2D apply(final Point<Euclidean2D> point)

Implements org.apache.commons.math3.geometry.partitioning.Transform.apply.

Doc from org.apache.commons.math3.geometry.partitioning.Transform.apply.

Transform a point of a space.

Parameters
point:Point<Euclidean2D>

point to transform

Returns:Vector2D

a new object representing the transformed point

applyback to summary
public Line apply(final Hyperplane<Euclidean2D> hyperplane)

Implements org.apache.commons.math3.geometry.partitioning.Transform.apply.

Doc from org.apache.commons.math3.geometry.partitioning.Transform.apply.

Transform an hyperplane of a space.

Parameters
hyperplane:Hyperplane<Euclidean2D>

hyperplane to transform

Returns:Line

a new object representing the transformed hyperplane

applyback to summary
public SubHyperplane<Euclidean1D> apply(final SubHyperplane<Euclidean1D> sub, final Hyperplane<Euclidean2D> original, final Hyperplane<Euclidean2D> transformed)

Implements org.apache.commons.math3.geometry.partitioning.Transform.apply.

Doc from org.apache.commons.math3.geometry.partitioning.Transform.apply.

Transform a sub-hyperplane embedded in an hyperplane.

Parameters
sub:SubHyperplane<Euclidean1D>

sub-hyperplane to transform

original:Hyperplane<Euclidean2D>

hyperplane in which the sub-hyperplane is defined (this is the original hyperplane, the transform has not been applied to it)

transformed:Hyperplane<Euclidean2D>

hyperplane in which the sub-hyperplane is defined (this is the transformed hyperplane, the transform has been applied to it)

Returns:SubHyperplane<Euclidean1D>

a new object representing the transformed sub-hyperplane