Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeometryUtils

utils for geometry

Hierarchy

  • GeometryUtils

Index

Methods

Static getGeometryBounds

Static getGeometryBoundsForFeature

Static isCoordinateEqual

  • isCoordinateEqual(first: OLCoordinate, second: OLCoordinate): boolean
  • checks if two coordinates are "equal"

    Parameters

    • first: OLCoordinate

      first coordinate

    • second: OLCoordinate

      second coordinate

    Returns boolean

    true if coordinates are equals to 6dp

Static removeCoordinate

  • removeCoordinate(geometry: OLGeometry, coordinate: OLCoordinate): boolean
  • Removes a coordinate from simple geometry

    Parameters

    • geometry: OLGeometry

      parent geometry from which to remove coordinate

    • coordinate: OLCoordinate

      coordinate to remove from geometry

    Returns boolean

    returns "true" if coordinate has been removed

Static rotateCoordinate

  • rotateCoordinate(coordinate: OLCoordinate, angleRadians: number, anchor: OLCoordinate): OLCoordinate
  • rotates a coordinate around the anchor

    Parameters

    • coordinate: OLCoordinate

      the coordinate to rotate

    • angleRadians: number

      the angle in radians to rotate

    • anchor: OLCoordinate

      the anchor point to rotate around

    Returns OLCoordinate

Generated using TypeDoc