CustomPoint<T extends num> class
Data represenation of point located on map instance where x is horizontal and y is vertical pixel value
- Inheritance
- Implementers
Constructors
- CustomPoint(T x, T 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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → T
-
finalinherited
- y → T
-
finalinherited
Methods
-
ceil(
) → CustomPoint< int> - Create new CustomPoint where x and y values are rounded up to int
-
distanceTo(
Point< T> other) → double -
Returns the distance between
this
andother
.inherited -
floor(
) → CustomPoint< int> - Create new CustomPoint where x and y values are rounded down to int
-
multiplyBy(
num n) → CustomPoint< T> -
Create new CustomPoint with x and y multiplied by
n
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rotate(
num radians) → CustomPoint< double> -
Create new CustomPoint whose x and y values are rotated by
radians
in clockwise fashion -
round(
) → CustomPoint< int> - Create new CustomPoint where x and y is rounded to int
-
scaleBy(
CustomPoint< T> point) → CustomPoint<T> -
Create new CustomPoint where x and y values are scaled by
point
values -
squaredDistanceTo(
Point< T> other) → T -
Returns the squared distance between
this
andother
.inherited -
toDoublePoint(
) → CustomPoint< double> -
toIntPoint(
) → CustomPoint< int> -
toString(
) → String -
A string representation of this object.
override
-
unscaleBy(
CustomPoint< T> point) → CustomPoint<double> -
Create new CustomPoint whose x and y values are divided by other
point
values
Operators
-
operator *(
num factor) → CustomPoint< T> -
Create new CustomPoint where x and y values are multiplied by
factor
override -
operator +(
Point< num> other) → CustomPoint<T> -
Create new CustomPoint where x and y values are added to
other
point x and y valuesoverride -
operator -(
Point< num> other) → CustomPoint<T> -
Create new CustomPoint where x and y values are subtracted from
other
point x and y valuesoverride -
operator /(
num factor) → CustomPoint< T> -
Create new CustomPoint where x and y values are divided by
factor
-
operator ==(
Object other) → bool -
Whether
other
is a point with the same coordinates as this point.inherited