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
public 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 Direction3dgetDirection(double fraction) Returns the direction at the given fraction.default Direction3dEnd direction of this Curve.default DirectedPoint3dEnd point of this Curve.default Direction3dStart direction of this Curve.default DirectedPoint3dStart point of this Curve.Methods inherited from interface org.djutils.draw.curve.Curve
getKnots, getLength, getPoint, toPolyLineMethods inherited from interface org.djutils.draw.curve.Flattener.FlattableCurve
getPoint
-
Method Details
-
getStartPoint
Description copied from interface:CurveStart point of this Curve.- Specified by:
getStartPointin interfaceCurve<DirectedPoint3d,Direction3d, Point3d, Flattener3d, PolyLine3d> - Returns:
- start point of this Curve
-
getEndPoint
Description copied from interface:CurveEnd point of this Curve.- Specified by:
getEndPointin interfaceCurve<DirectedPoint3d,Direction3d, Point3d, Flattener3d, PolyLine3d> - Returns:
- end point of this Curve
-
getStartDirection
Description copied from interface:CurveStart direction of this Curve.- Specified by:
getStartDirectionin interfaceCurve<DirectedPoint3d,Direction3d, Point3d, Flattener3d, PolyLine3d> - Returns:
- start direction of this Curve
-
getEndDirection
Description copied from interface:CurveEnd direction of this Curve.- Specified by:
getEndDirectionin interfaceCurve<DirectedPoint3d,Direction3d, Point3d, Flattener3d, PolyLine3d> - Returns:
- end direction of this Curve
-
getDirection
Description copied from interface:CurveReturns 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:
getDirectionin interfaceCurve<DirectedPoint3d,Direction3d, Point3d, Flattener3d, PolyLine3d> - Specified by:
getDirectionin interfaceFlattener.FlattableCurve<Point3d,Direction3d> - Parameters:
fraction- the fraction- Returns:
- the direction at the given
fraction
-