Point class

Constructors

Point(double x, double y)
const

Properties

angleRadians → double
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → double
final
y → double
final

Methods

clockwise(Point other) → bool
dotProduct(Point other) → double
dotProductXY(double otherX, double otherY) → double
getDirection() → Point
getDistance() → double
getDistanceSquared() → double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate(double degrees, {Point center = Point.zero}) → Point
rotate90() → Point
toString() → String
A string representation of this object.
inherited
transformed(PointTransformer f) → Point

Operators

operator %(double operand) → Point
operator *(double operand) → Point
operator +(Point operand) → Point
operator -(Point operand) → Point
operator /(double operand) → Point
operator ==(Object other) → bool
The equality operator.
inherited
operator unary-() → Point

Constants

zero → const Point