Class OrientedPoint2dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.dfx.Tuple2dfx<Point2dfx>
-
- org.arakhne.afc.math.geometry.d2.dfx.Point2dfx
-
- org.arakhne.afc.math.geometry.d2.dfx.OrientedPoint2dfx
-
- All Implemented Interfaces:
Serializable,Cloneable,OrientedPoint2D<Point2dfx,Vector2dfx>,Point2D<Point2dfx,Vector2dfx>,Tuple2D<Point2dfx>,JsonableObject
public class OrientedPoint2dfx extends Point2dfx implements OrientedPoint2D<Point2dfx,Vector2dfx>
2D oriented point with double precison floating point FX properties.- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Thomas PIOTROWSKI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Constructor Summary
Constructors Constructor Description OrientedPoint2dfx()Construct an empty oriented point.OrientedPoint2dfx(double x, double y)Construct an oriented point from the two given coordinates.OrientedPoint2dfx(double x, double y, double tanX, double tanY)Construct an oriented point from the two given coordinates.OrientedPoint2dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y)Construct an oriented point from the two given coordinates.OrientedPoint2dfx(Point2dfx point, Vector2dfx tangent)Constructor by setting from a point and a tangent vector.OrientedPoint2dfx(Tuple2dfx<?> tuple)Constructor by setting.OrientedPoint2dfx(Point2D<?,?> point, Vector2D<?,?> tangent)Construct an oriented point from a point and a tangent vector.OrientedPoint2dfx(Tuple2D<?> tuple)Constructor by copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrientedPoint2dfxclone()Clone this point.Vector2dfxgetNormal()Replies the normal vector at this point.doublegetNormalX()Replies the X coordinate of the normal vector.doublegetNormalY()Replies the Y coordinate of the normal vector.Vector2dfxgetTangent()Replies the tangent vector at this point.doublegetTangentX()Replies the X coordinate of the direction vector.doublegetTangentY()Replies the Y coordinate of the direction vector.inthashCode()Returns a hash code value based on the data values in this object.intinx()Replies the X coordinate of the normal vector.intiny()Replies the Y coordinate of the normal vector.intitx()Replies the X coordinate of the direction vector.intity()Replies the Y coordinate of the direction vector.(package private) javafx.beans.property.ReadOnlyDoublePropertynorXProperty()Replies the property that is the x coordinate of the normal vector.(package private) javafx.beans.property.ReadOnlyDoublePropertynorYProperty()Replies the property that is the y coordinate of the normal vector.voidsetTangent(Vector2dfx tangent)Sets the given vector as the new tangent to this point.voidsetTangentX(double tanX)Sets a new value in the X direction of the point.voidsetTangentX(int tanX)Sets a new value in the X direction of the point.voidsetTangentY(double tanY)Sets a new value in the Y direction of the point.voidsetTangentY(int tanY)Sets a new value in the Y direction of the point.javafx.beans.property.DoublePropertytanXProperty()Replies the property that is the x coordinate of the tangent vector.javafx.beans.property.DoublePropertytanYProperty()Replies the property that is the y coordinate of the tangent vector.-
Methods inherited from class org.arakhne.afc.math.geometry.d2.dfx.Point2dfx
convert, getGeomFactory, toUnmodifiable
-
Methods inherited from class org.arakhne.afc.math.geometry.d2.dfx.Tuple2dfx
equals, getX, getY, ix, iy, set, setX, setX, setY, setY, toJson, toString, xProperty, yProperty
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.OrientedPoint2D
equals, getPoint, set, set, setTangent, setTangent
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.Point2D
$amp$amp, $minus, $minus, $minus, $plus, $plus, add, add, add, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getGeomFactory, getIdistanceL1, getIdistanceLinf, operator_add, operator_and, operator_elvis, operator_equals, operator_minus, operator_minus, operator_minus, operator_notEquals, operator_plus, operator_plus, operator_remove, operator_upTo, operator_upTo, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleAdd, scaleAdd, sub, sub, toUnmodifiable, turn, turn, turn, turnLeft, turnLeft, turnLeft, turnRight, turnRight, turnRight
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.Tuple2D
absolute, absolute, add, add, addX, addX, addY, addY, clamp, clamp, clamp, clamp, clampMax, clampMax, clampMax, clampMax, clampMin, clampMin, clampMin, clampMin, epsilonEquals, equals, equals, get, get, get, getX, getY, interpolate, interpolate, ix, iy, negate, negate, scale, scale, scale, scale, set, set, set, set, set, setX, setX, setY, setY, sub, sub, subX, subX, subY, subY
-
-
-
-
Constructor Detail
-
OrientedPoint2dfx
public OrientedPoint2dfx()
Construct an empty oriented point.
-
OrientedPoint2dfx
public OrientedPoint2dfx(Tuple2D<?> tuple)
Constructor by copy.- Parameters:
tuple- the tuple to copy.
-
OrientedPoint2dfx
public OrientedPoint2dfx(Tuple2dfx<?> tuple)
Constructor by setting.- Parameters:
tuple- the tuple to set.
-
OrientedPoint2dfx
public OrientedPoint2dfx(double x, double y)Construct an oriented point from the two given coordinates.- Parameters:
x- x coordinate of the point.y- y coordinate of the point.
-
OrientedPoint2dfx
public OrientedPoint2dfx(javafx.beans.property.DoubleProperty x, javafx.beans.property.DoubleProperty y)Construct an oriented point from the two given coordinates.- Parameters:
x- x coordinate of the point.y- y coordinate of the point.
-
OrientedPoint2dfx
public OrientedPoint2dfx(Point2D<?,?> point, Vector2D<?,?> tangent)
Construct an oriented point from a point and a tangent vector.- Parameters:
point- the point.tangent- the tangent vector.
-
OrientedPoint2dfx
public OrientedPoint2dfx(Point2dfx point, Vector2dfx tangent)
Constructor by setting from a point and a tangent vector.- Parameters:
point- the point.tangent- the tangent vector.
-
OrientedPoint2dfx
public OrientedPoint2dfx(double x, double y, double tanX, double tanY)Construct an oriented point from the two given coordinates.- Parameters:
x- x coordinate of the point.y- y coordinate of the point.tanX- x coordinate of the vector.tanY- y coordinate of the vector.
-
-
Method Detail
-
hashCode
@Pure public int hashCode()
Description copied from interface:Tuple2DReturns a hash code value based on the data values in this object. Two differentTuple2Dobjects with identical data values (i.e.,Tuple2D.equals(Object)returns true) will return the same hash code value. Two objects with different data members may return the same hash value, although this is not likely.
-
clone
public OrientedPoint2dfx clone()
Description copied from interface:Tuple2DClone this point.
-
getTangentX
public double getTangentX()
Description copied from interface:OrientedPoint2DReplies the X coordinate of the direction vector. If this point is not part of a polyline, the direction vector is null.- Specified by:
getTangentXin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the x coordinate of the direction vector.
-
itx
public int itx()
Description copied from interface:OrientedPoint2DReplies the X coordinate of the direction vector. If this point is not part of a polyline, the direction vector is null.- Specified by:
itxin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the x coordinate of the direction vector.
-
setTangentX
public void setTangentX(int tanX)
Description copied from interface:OrientedPoint2DSets a new value in the X direction of the point.- Specified by:
setTangentXin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Parameters:
tanX- the new value double x.
-
setTangentX
public void setTangentX(double tanX)
Description copied from interface:OrientedPoint2DSets a new value in the X direction of the point.- Specified by:
setTangentXin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Parameters:
tanX- the new value double x.
-
getTangentY
public double getTangentY()
Description copied from interface:OrientedPoint2DReplies the Y coordinate of the direction vector. If this point is not part of a polyline, the direction vector is null.- Specified by:
getTangentYin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the y coordinate of the direction vector.
-
ity
public int ity()
Description copied from interface:OrientedPoint2DReplies the Y coordinate of the direction vector. If this point is not part of a polyline, the direction vector is null.- Specified by:
ityin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the y coordinate of the direction vector.
-
setTangentY
public void setTangentY(int tanY)
Description copied from interface:OrientedPoint2DSets a new value in the Y direction of the point.- Specified by:
setTangentYin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Parameters:
tanY- the new value double y.
-
setTangentY
public void setTangentY(double tanY)
Description copied from interface:OrientedPoint2DSets a new value in the Y direction of the point.- Specified by:
setTangentYin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Parameters:
tanY- the new value double y.
-
tanXProperty
@Pure public javafx.beans.property.DoubleProperty tanXProperty()
Replies the property that is the x coordinate of the tangent vector.- Returns:
- the tangent vector x property.
-
tanYProperty
@Pure public javafx.beans.property.DoubleProperty tanYProperty()
Replies the property that is the y coordinate of the tangent vector.- Returns:
- the tangent vector y property.
-
getTangent
public Vector2dfx getTangent()
Description copied from interface:OrientedPoint2DReplies the tangent vector at this point.- Specified by:
getTangentin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the tangent vector.
-
setTangent
public void setTangent(Vector2dfx tangent)
Description copied from interface:OrientedPoint2DSets the given vector as the new tangent to this point. The normal vector is automatically recomputed.- Specified by:
setTangentin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Parameters:
tangent- the vector to set.
-
getNormal
public Vector2dfx getNormal()
Description copied from interface:OrientedPoint2DReplies the normal vector at this point.- Specified by:
getNormalin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the normal vector.
-
norXProperty
@Pure javafx.beans.property.ReadOnlyDoubleProperty norXProperty()
Replies the property that is the x coordinate of the normal vector.- Returns:
- the normal vector x property.
-
norYProperty
@Pure javafx.beans.property.ReadOnlyDoubleProperty norYProperty()
Replies the property that is the y coordinate of the normal vector.- Returns:
- the normal vector y property.
-
getNormalX
public double getNormalX()
Description copied from interface:OrientedPoint2DReplies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getNormalXin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the x coordinate of the normal vector.
-
inx
public int inx()
Description copied from interface:OrientedPoint2DReplies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
inxin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the x coordinate of the normal vector.
-
getNormalY
public double getNormalY()
Description copied from interface:OrientedPoint2DReplies the Y coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
getNormalYin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the y coordinate of the normal vector.
-
iny
public int iny()
Description copied from interface:OrientedPoint2DReplies the Y coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.- Specified by:
inyin interfaceOrientedPoint2D<Point2dfx,Vector2dfx>- Returns:
- the y coordinate of the normal vector.
-
-