UPoint class
- Inheritance
- Implementers
Constructors
- UPoint(double x, double y)
-
const
- UPoint.from(dynamic value)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- 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
-
ceil(
) → UPoint -
distanceTo(
Point< double> other) → double -
Returns the distance between
this
andother
.inherited -
equal(
dynamic other, [dynamic maxMargin = 0.0001]) → bool -
floor(
) → UPoint -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notEqual(
dynamic other, [dynamic maxMargin = 0.0001]) → bool -
round(
) → UPoint -
scaleBy(
UPoint point) → UPoint -
squaredDistanceTo(
Point< double> other) → double -
Returns the squared distance between
this
andother
.inherited -
toString(
) → String -
A string representation of this object.
override
-
unscaleBy(
UPoint point) → UPoint
Operators
-
operator *(
num factor) → UPoint -
Scale this point by
factor
as if it were a vector.override -
operator +(
Point< num> other) → UPoint -
Add
other
tothis
, as if both points were vectors.override -
operator -(
Point< num> other) → UPoint -
Subtract
other
fromthis
, as if both points were vectors.override -
operator /(
num factor) → UPoint -
operator ==(
Object other) → bool -
Whether
other
is a point with the same coordinates as this point.override