AngleRange class

Represents an angle range.

Constructors

AngleRange({required Angle start, required Angle end})
Constructs an angle range from the given start and end angle An angle range can NOT be over 360 degrees
AngleRange.fromDelta(Angle mid, Angle delta)
Constructs an angle range from the given mid angle by adding and substracting delta.
factory
AngleRange.fromSweep(Angle start, Angle sweep)
Constructs and angle range from a start and a sweep angle
factory
AngleRange.normalized(Angle start, Angle end)
Constructs an angle range where start and end are normalized
factory

Properties

end Angle
no setter
hashCode int
The hash code for this object.
no setteroverride
mid Angle
no setter
normalized AngleRange
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Angle
no setter
sweep Angle
no setter

Methods

includes(Angle angle) bool
Checks whether the given angle is in this angle range
includesNormalized(Angle angle) bool
Checks whether the given angle is in this normalized angle range Note: start can be greater than end, but then the range spans over angle zero
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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