NPoint class

NPoint 의 x, y는 소수점 6자리 이내의 정확도만 보장합니다.

Inheritance

Constructors

NPoint(double x, double 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
payload Map<String, dynamic>
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
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
toNPayload() → NPayload
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