MPPoint class
MPPoint is a representation of latitude and longitude coordinates packaged with a Z-axis representation in floorIndex
- Inheritance
-
- Object
- MapsIndoorsObject
- MPGeometry
- MPPoint
Constructors
- MPPoint()
- Create a empty MPPoint, remember to setCoordinates for proper use
- MPPoint.copy(MPPoint other)
- Copy another MPPoint's coordinates
- MPPoint.withCoordinates({required num longitude, required num latitude, int? floorIndex})
-
Createa a MPPoint from a set of
latitude
/longitude
coordinates and an optionalfloorIndex
Properties
-
area
→ Future<
double?> -
Get the non-zero area of the point
no setteroverride
- coordinatesAsString → String
-
Prints this point on the following form:
no setter
- floorIndex ↔ int
-
Get the floorIndex, if none is present returns noFloorIndex
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude ↔ num
-
Get the latitude, if none is present returns double.nan
getter/setter pair
- longitude ↔ num
-
Get the longitude, if none is present returns double.nan
getter/setter pair
- position → MPPoint
-
Gets the position of the point, which is this
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Used to determine the proper type of a MPGeometry
no setteroverride
Methods
-
angleBetween(
MPPoint other) → Future< num?> - Calculates the angle between this point and another MPPoint in degrees from north
-
contains(
MPPoint point) → Future< bool?> -
Check whether a
point
is contained within the geometryinherited -
distanceTo(
MPPoint destination) → Future< num?> - Calculates the shortest distance to another MPPoint
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCoordinates(
{required num latitude, required num longitude}) → void - Update both coordinates for the point
-
toJson(
) → Map< String, dynamic> -
Converts the MPPoint to a JSON representation that can be parsed by the MapsIndoors Platform SDK
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
Constants
- noFloorIndex → const int
- The index returned when no floor index has been specified