Function locatableToPoint

  • Converts a locatable to a point. If the locatable is a shape, it returns the center of the shape, otherwise it's a point, so it just returns the point

    Parameters

    • locatable: Locatable

      the locatable to convert

    Returns Point

    a point representing the locatable