Size class

Inheritance

Constructors

Size(double width, double height)
const
Size.from(dynamic value)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
height double
no setter
magnitude double
Get the straight line (Euclidean) distance between the origin (0, 0) and this point.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
no setter
x double
finalinherited
y double
finalinherited

Methods

ceil() Size
override
distanceTo(Point<double> other) double
Returns the distance between this and other.
inherited
equal(dynamic other, [dynamic maxMargin = 0.0001]) bool
inherited
floor() Size
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notEqual(dynamic other, [dynamic maxMargin = 0.0001]) bool
inherited
round() Size
override
scaleBy(UPoint point) Size
override
squaredDistanceTo(Point<double> other) double
Returns the squared distance between this and other.
inherited
toString() String
A string representation of this object.
override
unscaleBy(UPoint point) Size
override

Operators

operator *(num factor) Size
Scale this point by factor as if it were a vector.
override
operator +(Point<num> other) Size
Add other to this, as if both points were vectors.
override
operator -(Point<num> other) Size
Subtract other from this, as if both points were vectors.
override
operator /(num factor) Size
override
operator ==(Object other) bool
Whether other is a point with the same coordinates as this point.
override