• JMap.Geometry.checkCircle

    Throw an error if the provided parameter is not a valid circle.

    Parameters

    • circle: JCircle

      The circle object to check

    Returns void

    Example

    let circle = { center: { x: 10, y: 10 }, radius: 10 }
    // The following instruction will not throw an error
    JMap.Geometry.checkCircle(circle)

    circle = { radius: 10 } // missing center
    // The following instruction will throw an error
    JMap.Geometry.checkCircle(circle)