public class SupportPoint extends Point implements ISupportPoint
Modifier and Type | Field and Description |
---|---|
Point |
tangentPointAfter
The sub-support point after the actual support point
|
Point |
tangentPointBefore
The sub-support point before the actual support point
|
Constructor and Description |
---|
SupportPoint(float x,
float y)
Constructs a new SupportPoint at the given position.
|
SupportPoint(float xBefore,
float yBefore,
float x,
float y,
float xAfter,
float yAfter)
Constructs a new SupportPoint at the given position with the given
tangential points.
|
SupportPoint(SupportPoint source)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
SupportPoint |
createTangentPoints()
Creates instances for the tangent points if they are not already present.
|
boolean |
equals(java.lang.Object obj) |
static java.util.ArrayList<SupportPoint> |
fromArray(double... values) |
static java.util.ArrayList<SupportPoint> |
fromArrays(double[] xValues,
double[] yValues) |
Point |
getTangentPointAfter() |
Point |
getTangentPointBefore() |
void |
move(float x,
float y)
Move this support point relative to its current position.
|
void |
moveTo(float x,
float y)
Move this support point to an absolute position.
|
static double[][] |
toArrays(java.util.ArrayList<SupportPoint> supportPoints) |
asVector2D, getX, getY
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asVector2D, getX, getY
public Point tangentPointBefore
public Point tangentPointAfter
public SupportPoint(float x, float y)
x
- - the x coordinate of this support pointy
- - the y coordinate of this support pointpublic SupportPoint(SupportPoint source)
source
- - source support pointpublic SupportPoint(float xBefore, float yBefore, float x, float y, float xAfter, float yAfter)
xBefore
- - the x coordinate of the tangent point before the actual
support pointyBefore
- - the y coordinate of the tangent point before the actual
support pointx
- - the x coordinate of this support pointy
- - the y coordinate of this support pointxAfter
- - the x coordinate of the tangent point after the actual
support pointyAfter
- - the y coordinate of the tangent point after the actual
support pointpublic SupportPoint createTangentPoints()
public Point getTangentPointBefore()
getTangentPointBefore
in interface ISupportPoint
public Point getTangentPointAfter()
getTangentPointAfter
in interface ISupportPoint
public void move(float x, float y)
x
- - the shift in x-directiony
- - the shift in y directionpublic void moveTo(float x, float y)
x
- - the new x position of this support pointy
- - the new y position of this support pointpublic static java.util.ArrayList<SupportPoint> fromArrays(double[] xValues, double[] yValues)
public static java.util.ArrayList<SupportPoint> fromArray(double... values)
public static double[][] toArrays(java.util.ArrayList<SupportPoint> supportPoints)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object