PointF class
PointF holds two float coordinates.
See: https://developer.android.com/reference/android/graphics/PointF
- Implemented types
Constructors
- PointF([double x = 0 double y = 0 ])
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
andother
.inherited -
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
andother
.inherited -
toString(
) → String -
Returns a string representation of this object.
inherited
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
tothis
, as if both points were vectors.inherited -
operator -(
Point< double> other) → Point<double> -
Subtract
other
fromthis
, as if both points were vectors.inherited -
operator ==(
dynamic other) → bool -
A
Point
is only equal to anotherPoint
with the same coordinates.inherited