Circle class

Defines a mathematical circle strictly via a radius.

Implemented types

Constructors

Circle({required double radius, Point<num>? center})
Creates a Circle with the given radius and center.

Properties

area double
The total surface area of the shape.
no setteroverride
boundingBox Rectangle
The smallest axis-aligned rectangle that completely encloses the shape.
no setteroverride
center Point<num>
The center point of the circle in 2D space.
no setter
centroid Point<double>
The mathematical center of mass of the shape.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
perimeter double
The total length of the shape's boundary.
no setteroverride
radius double
The radius of the circle.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate(double angle, [Point<num>? origin]) Circle
Rotates the shape by the given angle (in radians) around the origin. If origin is omitted, rotates around the shape's centroid.
override
scale(num factor) Circle
Scales the shape uniformly by the given factor originating from centroid.
override
toString() String
A string representation of this object.
override
translate(Point<num> offset) Circle
Translates the shape by the given vector offset.
override

Operators

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