Package org.djutils.draw.curve
Interface Curve3d
- All Superinterfaces:
Curve<DirectedPoint3d,
,Direction3d, Point3d, Flattener3d, PolyLine3d> Flattener.FlattableCurve<Point3d,
Direction3d>
- All Known Implementing Classes:
Bezier3d
,BezierCubic3d
interface Curve3d
extends Curve<DirectedPoint3d,Direction3d,Point3d,Flattener3d,PolyLine3d>, Flattener.FlattableCurve<Point3d,Direction3d>
This interface narrows down the interface of continuous curves for 3d use.
Copyright (c) 2023-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Method Summary
Modifier and TypeMethodDescriptiondefault Direction3d
getDirection
(double fraction) Returns the direction at the given fraction.default Direction3d
End direction of this Curve.default DirectedPoint3d
End point of this Curve.default Direction3d
Start direction of this Curve.default DirectedPoint3d
Start point of this Curve.Methods inherited from interface org.djutils.draw.curve.Curve
getKnots, getLength, getPoint, toPolyLine
Methods inherited from interface org.djutils.draw.curve.Flattener.FlattableCurve
getPoint
-
Method Details
-
getStartPoint
Description copied from interface:Curve
Start point of this Curve.- Specified by:
getStartPoint
in interfaceCurve<DirectedPoint3d,
Direction3d, Point3d, Flattener3d, PolyLine3d> - Returns:
- start point of this Curve
-
getEndPoint
Description copied from interface:Curve
End point of this Curve.- Specified by:
getEndPoint
in interfaceCurve<DirectedPoint3d,
Direction3d, Point3d, Flattener3d, PolyLine3d> - Returns:
- end point of this Curve
-
getStartDirection
Description copied from interface:Curve
Start direction of this Curve.- Specified by:
getStartDirection
in interfaceCurve<DirectedPoint3d,
Direction3d, Point3d, Flattener3d, PolyLine3d> - Returns:
- start direction of this Curve
-
getEndDirection
Description copied from interface:Curve
End direction of this Curve.- Specified by:
getEndDirection
in interfaceCurve<DirectedPoint3d,
Direction3d, Point3d, Flattener3d, PolyLine3d> - Returns:
- end direction of this Curve
-
getDirection
Description copied from interface:Curve
Returns the direction at the given fraction. The fraction may represent any parameter, such as t in a Bézier curve, s in a Clothoid, or simply the fraction of length. The default implementation performs a numerical approach by looking at the direction between the points at fraction, and a point 1e-6 away.- Specified by:
getDirection
in interfaceCurve<DirectedPoint3d,
Direction3d, Point3d, Flattener3d, PolyLine3d> - Specified by:
getDirection
in interfaceFlattener.FlattableCurve<Point3d,
Direction3d> - Parameters:
fraction
- the fraction- Returns:
- the direction at the given
fraction
-