GeometryUtils class abstract
@ingroup navigine_dart_classes @ingroup navigine_dart_geometry_classes
@brief A set of functions for working with geometries.
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
distanceBetweenGlobalPoints(
GlobalPoint from, GlobalPoint to) → double - @brief Get distance between GPS points @param from start point of calculation @see GlobalPoint "GlobalPoint" @param to end point of calculation @see GlobalPoint "GlobalPoint" @return distance in meters
-
distanceBetweenPoints(
Point from, Point to) → double - @brief Get distance between points @param from start point of calculation @see Point "Point" @param to end point of calculation @see Point "Point" @return distance in meters
-
divisionRatioBySegment(
Segment segment1, Segment segment2) → double - @brief Calculate the division ratio of a segment by a given segment(if intersects) @param segment1 first segment of calculation @see Segment "Segment" @param segment2 second segment of calculation @see Segment "Segment" @return division ratio
-
getProjectionRatio(
Segment segment, Point point) → double - @brief Calculate the division ratio of a segment by a given point Calculate projection point on a segment @param segment segment of calculation @see Segment "Segment" @param point point of calculation @see Point "Point" @return division ratio
-
getRatioPoint(
Segment segment, double r) → Point - @brief Calculate projection point on a segment @param segment segment of calculation @see Segment "Segment" @param r division ratio @return ratio point @see Point "Point"
-
polygonArea(
Polygon polygon) → double - @brief Get polygon area @param polygon polygon object for calculation @see Polygon "Polygon" @return area in meters
-
polygonCenter(
Polygon polygon) → Point - @brief Get polygon geometric center @param polygon polygon object for calculation @see Polygon "Polygon" @return center point @see Point "Point"
-
polygonContainsPoint(
Polygon polygon, Point point) → bool - @brief Checks that polygon contains point @param polygon polygon object in which looking for contents @see Polygon "Polygon" @param point checking point object @see Point "Point" @return contains or not
-
segmentIntersectionSegment(
Segment segment1, Segment segment2) → Point - @brief Calculate the intersection point of two segments @param segment1 first segment of calculation @see Segment "Segment" @param segment2 second segment of calculation @see Segment "Segment" @return intersection point @see Point "Point"
-
segmentIntersectsSegment(
Segment segment1, Segment segment2) → bool - @brief Checks the intersection of two segments @param segment1 first segment of calculation @see Segment "Segment" @param segment2 second segment of calculation @see Segment "Segment" @return intersects or not
-
segmentLength(
Segment segment) → double - @brief Get length of segment @param segment segment object for calculation @see Segment "Segment" @return length in meters
-
segmentPointDistance(
Segment segment, Point point) → double - @brief Get distance from segment to point @param segment start segment of calculation @see Segment "Segment" @param point end point of calculation @see Point "Point" @return distance in meters