MappointRelative class

An immutable pair of relative double coordinates in map pixels.

This is used to represent an offset from a reference point.

Constructors

MappointRelative(double dx, double dy)
Creates a new MappointRelative.
const
MappointRelative.zero()
Creates a new MappointRelative at the origin (0,0).
const

Properties

dx double
The x coordinate of this point in pixels. Positive values points towards the right side of the screen.
final
dy double
The y coordinate of this point in pixels. Positive values points to the bottom of the screen.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offset(double dx, double dy) MappointRelative
Creates a new MappointRelative that is offset by the given dx and dy values.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override