PointD class

Inheritance

Constructors

PointD(double x, double y)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
magnitude double
Get the straight line (Euclidean) distance between the origin (0, 0) and this point.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
x double
final, inherited
y double
final, inherited

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 non-existent 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