Ellipse class
Defines a mathematical ellipse strictly via its semi-axes.
Constructors
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 ellipse.
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semiMajorAxis → double
-
The semi-major axis (half the width).
final
- semiMinorAxis → double
-
The semi-minor axis (half the height).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rotate(
double angle, [Point< num> ? origin]) → Ellipse -
Rotates the shape by the given
angle(in radians) around theorigin. Iforiginis omitted, rotates around the shape's centroid.override -
scale(
num factor) → Ellipse -
Scales the shape uniformly by the given
factororiginating from centroid.override -
toString(
) → String -
A string representation of this object.
override
-
translate(
Point< num> offset) → Ellipse -
Translates the shape by the given vector
offset.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited