PointD class

Inheritance

Constructors

PointD(double x, double y)

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 double
finalinherited
y double
finalinherited

Methods

distanceTo(Point<double> other) double
Returns the distance between this and other.
inherited
isInPolygon(List<PointD> points) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
squaredDistanceTo(Point<double> other) double
Returns the squared distance between this and other.
inherited
toString() String
A string representation of this object.
override

Operators

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