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
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