Package org.djutils.draw.curve
Class Flattener3d.MaxDeviationAndAngle
java.lang.Object
org.djutils.draw.curve.Flattener3d.MaxDeviationAndAngle
- All Implemented Interfaces:
- Flattener<Flattener3d,,- Curve3d, - PolyLine3d, - Point3d, - Direction3d> - Flattener3d
- Enclosing interface:
- Flattener3d
Flattener that limits the distance and angle difference between the 
Curve3d and the
 PolyLine3d.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.djutils.draw.curve.FlattenerFlattener.FlattableCurve<P,DIR> Nested classes/interfaces inherited from interface org.djutils.draw.curve.Flattener3dFlattener3d.MaxAngle, Flattener3d.MaxDeviation, Flattener3d.MaxDeviationAndAngle, Flattener3d.NumSegments
- 
Constructor SummaryConstructorsConstructorDescriptionMaxDeviationAndAngle(double maxDeviation, double maxAngle) Construct a flattener that limits the distance and angle difference between thecurve3dand thePolyLine3d.
- 
Method SummaryModifier and TypeMethodDescriptionFlatten a Curve3d into a PolyLine3d.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.djutils.draw.curve.FlattenercheckPositionError, loadKnot, loadKnotsMethods inherited from interface org.djutils.draw.curve.Flattener3dcheckDirectionError, checkInflectionPoint, checkLoopBack
- 
Constructor Details- 
MaxDeviationAndAnglepublic MaxDeviationAndAngle(double maxDeviation, double maxAngle) Construct a flattener that limits the distance and angle difference between thecurve3dand thePolyLine3d.- Parameters:
- maxDeviation- maximum deviation, must be above 0.0
- maxAngle- maximum angle, must be above 0.0
- Throws:
- ArithmeticException- when- maxDeviation, or- maxAngleis- NaN
- IllegalArgumentException- when- maxDeviation ≤ 0.0, or- maxAngle ≤ 0.0
 
 
- 
- 
Method Details- 
flattenDescription copied from interface:Flattener3dFlatten a Curve3d into a PolyLine3d.- Specified by:
- flattenin interface- Flattener3d
- Parameters:
- curve- the curve
- Returns:
- flattened line
- Throws:
- NullPointerException- when- curveis- null
 
 
-