Interface PathElement2ai
-
- All Superinterfaces:
Cloneable
,PathElement2D
,Serializable
- All Known Implementing Classes:
PathElement2i
,PathElement2i.ArcPathElement2i
,PathElement2i.ClosePathElement2i
,PathElement2i.CurvePathElement2i
,PathElement2i.LinePathElement2i
,PathElement2i.MovePathElement2i
,PathElement2i.QuadPathElement2i
,PathElement2ifx
,PathElement2ifx.ArcPathElement2ifx
,PathElement2ifx.ClosePathElement2ifx
,PathElement2ifx.CurvePathElement2ifx
,PathElement2ifx.LinePathElement2ifx
,PathElement2ifx.MovePathElement2ifx
,PathElement2ifx.QuadPathElement2ifx
public interface PathElement2ai extends PathElement2D
An element of the path.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCtrlX1()
Replies the x coordinate of the first control point.int
getCtrlX2()
Replies the x coordinate of the second control point.int
getCtrlY1()
Replies the y coordinate of the first control point.int
getCtrlY2()
Replies the y coordinate of the second control point.int
getFromX()
Replies the x coordinate of the starting point.int
getFromY()
Replies the y coordinate of the starting point.boolean
getLargeArcFlag()
Replies if the arc-to will sweep clockwise around the ellipse.int
getRadiusX()
Replies the x radius of the arc-to ellipse.int
getRadiusY()
Replies the y radius of the arc-to ellipse.double
getRotationX()
Replies the rotation of the x axis of the arc-to ellipse.boolean
getSweepFlag()
Replies if the arc-to will sweep the long way around the ellipse.int
getToX()
Replies the x coordinate of the target point.int
getToY()
Replies the y coordinate of the target point.PathElementType
getType()
Replies the type of the element.void
toArray(double[] array)
Copy the coords into the given array, except the source point.void
toArray(int[] array)
Copy the coords into the given array, except the source point.-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.PathElement2D
isDrawable, isEmpty
-
-
-
-
Method Detail
-
getFromX
@Pure int getFromX()
Replies the x coordinate of the starting point.- Returns:
- the x coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
.
-
getFromY
@Pure int getFromY()
Replies the y coordinate of the starting point.- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
.
-
getCtrlX1
@Pure int getCtrlX1()
Replies the x coordinate of the first control point.- Returns:
- the x coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlY1
@Pure int getCtrlY1()
Replies the y coordinate of the first control point.- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlX2
@Pure int getCtrlX2()
Replies the x coordinate of the second control point.- Returns:
- the x coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
getCtrlY2
@Pure int getCtrlY2()
Replies the y coordinate of the second control point.- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
getToX
@Pure int getToX()
Replies the x coordinate of the target point.- Returns:
- the x coordinate.
-
getToY
@Pure int getToY()
Replies the y coordinate of the target point.- Returns:
- the y coordinate.
-
getType
@Pure PathElementType getType()
Description copied from interface:PathElement2D
Replies the type of the element.- Specified by:
getType
in interfacePathElement2D
- Returns:
true
if the points are the same; otherwisefalse
.
-
toArray
@Pure void toArray(int[] array)
Copy the coords into the given array, except the source point.- Parameters:
array
- the output array.
-
toArray
@Pure void toArray(double[] array)
Copy the coords into the given array, except the source point.- Parameters:
array
- the output array.
-
getRadiusX
@Pure int getRadiusX()
Replies the x radius of the arc-to ellipse.- Returns:
- the x radius, or
0
if the type is notPathElementType.ARC_TO
.
-
getRadiusY
@Pure int getRadiusY()
Replies the y radius of the arc-to ellipse.- Returns:
- the y radius, or
0
if the type is notPathElementType.ARC_TO
.
-
getRotationX
@Pure double getRotationX()
Replies the rotation of the x axis of the arc-to ellipse.- Returns:
- the x axis rotation, or
0
if the type is notPathElementType.ARC_TO
.
-
getSweepFlag
@Pure boolean getSweepFlag()
Replies if the arc-to will sweep the long way around the ellipse.- Returns:
true
iff the element will sweep clockwise around the ellipse, or0
if the type is notPathElementType.ARC_TO
.
-
getLargeArcFlag
@Pure boolean getLargeArcFlag()
Replies if the arc-to will sweep clockwise around the ellipse.- Returns:
true
iff the element will sweep clockwise around the ellipse, or0
if the type is notPathElementType.ARC_TO
.
-
-