public class ArcSectionComputer2D extends CurveSectionComputer<Vec2d>
This class represents an arc curve section.
Arc curves can only be computed in 2D.
- Author:
- Dr. Peter Droste, Omix Visualization
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ArcSectionComputer2D(Vec2d center, double radiusX, double radiusY, double startAngle, double length)
creates a new arc section computation unit. -
Method Summary
Modifier and Type Method Description Vec2d
accelerationAt(double t)
returns the acceleration (second derivative) of the curve at the parametert
double
getCurveSectionLength()
returns the arc lengthboolean
isArc()
this is always an arc.Vec2d
pointAt(double t)
returns the point of the curve at the parametert
Vec2d
tangentAt(double t)
returns the tangent (first derivative) of the curve at the parametert
-
Field Details
-
center
Center point of the arc. -
radiusX
public final double radiusXX radius of the arc. -
radiusY
public final double radiusYY radius of the arc. -
startAngle
public final double startAngleStart angle of the arc in radians. -
length
public final double lengthAngle length of the arc in radians.
-
-
Constructor Details
-
ArcSectionComputer2D
public ArcSectionComputer2D(Vec2d center, double radiusX, double radiusY, double startAngle, double length)creates a new arc section computation unit.- Parameters:
center
- Center point of the arcradiusX
- X radius of the arcradiusY
- Y radius of the arcstartAngle
- Start angle in radianslength
- Angle length in radians
-
-
Method Details
-
pointAt
returns the point of the curve at the parametert
- Specified by:
pointAt
in classCurveSectionComputer<Vec2d>
- Parameters:
t
- parameter- Returns:
- point
- See Also:
CurveSectionComputer.pointAt(double)
-
tangentAt
returns the tangent (first derivative) of the curve at the parametert
- Specified by:
tangentAt
in classCurveSectionComputer<Vec2d>
- Parameters:
t
- parameter- Returns:
- first derivative
- See Also:
CurveSectionComputer.tangentAt(double)
-
accelerationAt
returns the acceleration (second derivative) of the curve at the parametert
- Specified by:
accelerationAt
in classCurveSectionComputer<Vec2d>
- Parameters:
t
- parameter- Returns:
- second derivative
- See Also:
CurveSectionComputer.accelerationAt(double)
-
getCurveSectionLength
public double getCurveSectionLength()returns the arc length- Specified by:
getCurveSectionLength
in classCurveSectionComputer<Vec2d>
- Returns:
- length
- See Also:
CurveSectionComputer.getCurveSectionLength()
-
isArc
public boolean isArc()this is always an arc.- Overrides:
isArc
in classCurveSectionComputer<Vec2d>
- Returns:
- true
- See Also:
CurveSectionComputer.isArc()
-