Coords<T extends num> class

Inheritance

Constructors

Coords(T x, T y)

Properties

hashCode int
The hash code for this object.
no setteroverride
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
x → T
finalinherited
y → T
finalinherited
z ↔ T
getter/setter pair

Methods

ceil() CustomPoint<T>
inherited
distanceTo(Point<T> other) double
Returns the distance between this and other.
inherited
floor() CustomPoint<T>
inherited
multiplyBy(num n) CustomPoint<num>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate(num radians) CustomPoint<num>
inherited
round() CustomPoint<num>
inherited
scaleBy(CustomPoint<num> point) CustomPoint<num>
inherited
squaredDistanceTo(Point<T> other) → T
Returns the squared distance between this and other.
inherited
toString() String
A string representation of this object.
override
unscaleBy(CustomPoint<T> point) CustomPoint<T>
inherited

Operators

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