Rectangle class final

Inheritance

Constructors

Rectangle(Vector2 size)
const
Rectangle.square(double size)

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
The height of the AABB that fully contains this shape.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Vector2
This shape's size, if fully contained by an AABB.
final
width double
The width of the AABB that fully contains this shape.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rect() Rect
This shape's size, expressed in a canvas-friendly type.
inherited
toString() String
A string representation of this object.
inherited
worldExtents(Matrix3 transform, MVector2 ex, MVector2 ey) → void
Computes this rectangle's world-space half-extents under transform.

Operators

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