Arc class

An arc defined by a center, radius, start angle, and end angle.

Angles are in radians. The arc sweeps counter-clockwise from startAngle to endAngle.

Constructors

Arc({required Point center, required double radius, required Rad startAngle, required Rad endAngle})
const
Arc.fromDegrees({required Point center, required double radius, required double startDeg, required double endDeg})
Create an arc from degrees instead of radians
factory

Properties

center Point
Center point of the arc's circle
final
endAngle Rad
End angle in radians
final
endPoint Point
The point at the end of the arc
no setter
hashCode int
The hash code for this object.
no setteroverride
length double
The length of the arc
no setter
midPoint Point
The midpoint of the arc
no setter
radius double
Radius of the arc's circle
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sectorArea double
The area of the sector formed by this arc
no setter
startAngle Rad
Start angle in radians
final
startPoint Point
The point at the start of the arc
no setter
sweepAngle Rad
The sweep angle of the arc in radians
no setter

Methods

containsAngle(Rad angle) bool
Check if an angle (in radians) falls within this arc's sweep
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pointAt(double t) Point
Get a point on the arc at parameter t (0 = start, 1 = end)
scale(double factor) Arc
Scale the arc by factor
toString() String
A string representation of this object.
override
translate({double x = 0, double y = 0}) Arc
Translate the arc

Operators

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