Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## toxi.geom
Interface Shape2D

All Known Implementing Classes:
  Circle, Ellipse, PointQuadtree, Polygon2D, Rect, Triangle2D

    public interface Shape2D

Interface description of common operations supported by 2D geometry types.

Method Summary
`boolean` | `containsPoint(ReadonlyVec2D p)` Checks if the point is within the given shape.
`float` | `getArea()` Computes the area of the shape.
`float` | `getCircumference()` Computes the shape's circumference.

Method Detail

### containsPoint

    boolean containsPoint(ReadonlyVec2D p)

  Checks if the point is within the given shape.

  Returns:
    true, if inside

### getArea

    float getArea()

  Computes the area of the shape.

  Returns:
    area

### getCircumference

    float getCircumference()

  Computes the shape's circumference.

  Returns:
    circumference

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD