PointF class

PointF holds two float coordinates.

See: https://developer.android.com/reference/android/graphics/PointF See: https://github.com/aosp-mirror/platform_frameworks_base/blob/master/graphics/java/android/graphics/PointF.java

Inheritance
Mixed in 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
parcelableCreator String
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
x double
final, inherited
y double
final, inherited

Methods

describeContents() int
Describe any special objects contained in this instance's marshaled representation. [...]
inherited
distanceTo(Point<double> other) double
Returns the distance between this and other.
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 and other. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
writeToParcel(Parcel parcel, [int flags = 0]) → void
Flatten this object in to a Parcel. [...]
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