ArcminGenerator class

Constructors

ArcminGenerator({double arcminMax = 360, dynamic maxCurveLength = 300, int generationAttemntsLimit = 1000})
max segment radius is 360 arcmin by default max line / curve length is 240 arcmin

Properties

arcminMax double
final
generationAttemntsLimit int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logger ↔ Logger
getter/setter pair
maxCurveLength double
latefinal
positionChoices List<SpacePosition>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments List<Segment>
final

Methods

checkGenerationPreconditions(double distanceBetweenPoints) → void
generate(double distanceBetweenPoints, DistortionFunc? func, {int pointsToDistort = 2, bool distort = false, bool rotate = false, Segment? segment}) AdjustableCurve2D
generateCoordinates(Array startPoint, SpacePosition spacePosition, double distanceBetweenPoints) List<Array>
generateCurve(double distanceBetweenPoints, Segment segment, SpacePosition spacePosition) AdjustableCurve2D
generateDummyCurve(double distanceBetweenPoints) AdjustableCurve2D
generateRandomCurve(double distanceBetweenPoints, {Segment? segment}) AdjustableCurve2D
getRandomSegment() Segment
getRandomSign() int
getRandomSpacePosition() SpacePosition
getRandomStartPoint(Segment segment) → Array
getSegmentMaxLimits(Segment segment) → Array
Returns array of 2 elements with appropriate signs which represent segment borders in arcmins.
isCurveIntersectingBorders(List<Array> coordinates) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited