Package arc.math.geom

Interface Shape2D

All Known Implementing Classes:
Circle, Ellipse, PixmapPacker.PixmapPackerRect, Polygon, Polyline, Rect

public interface Shape2D
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(float x, float y)
    Returns whether a point with the given coordinates is contained within the shape.
    boolean
    contains(Vec2 point)
    Returns whether the given point is contained within the shape.
  • Method Details

    • contains

      boolean contains(Vec2 point)
      Returns whether the given point is contained within the shape.
    • contains

      boolean contains(float x, float y)
      Returns whether a point with the given coordinates is contained within the shape.