CustomPoint<T extends num> class

Inheritance
Implementers

Constructors

CustomPoint(num x, num y)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Methods

ceil() CustomPoint<T>
distanceTo(Point<T> other) double
Returns the distance between this and other.
inherited
floor() CustomPoint<T>
multiplyBy(num n) CustomPoint<num>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate(num radians) CustomPoint<num>
round() CustomPoint<num>
scaleBy(CustomPoint<num> point) CustomPoint<num>
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>

Operators

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