Coordinate class

Inheritance
Implementers

Constructors

Coordinate(num x, num y, [num z = 0])
Coordinate.from(dynamic value)
factory
Coordinate.fromKey(String key)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
key String
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
x double
finalinherited
y double
finalinherited
z double
final

Methods

ceil() Coordinate
override
distanceTo(Point<double> other) double
Returns the distance between this and other.
inherited
equal(dynamic other, [dynamic maxMargin = 0.0001]) bool
inherited
floor() Coordinate
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() Coordinate
override
scaleBy(UPoint point) Coordinate
override
squaredDistanceTo(Point<double> other) double
Returns the squared distance between this and other.
inherited
toPoint() UPoint
toString() String
A string representation of this object.
override
unscaleBy(UPoint point) Coordinate
override

Operators

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