Shape2d /

#includecinder/Shape2d.h

Public Member Functions

  • moveTo (const vec2 &p)
  • moveTo (float x, float y)
  • lineTo (const vec2 &p)
  • lineTo (float x, float y)
  • quadTo (const vec2 &p1, const vec2 &p2)
  • quadTo (float x1, float y1, float x2, float y2)
  • curveTo (const vec2 &p1, const vec2 &p2, const vec2 &p3)
  • curveTo (float x1, float y1, float x2, float y2, float x3, float y3)
  • arc (const vec2 &center, float radius, float startRadians, float endRadians, bool forward=true)
  • arc (float centerX, float centerY, float radius, float startRadians, float endRadians, bool forward=true)
  • arcTo (const vec2 &p, const vec2 &t, float radius)
  • arcTo (float x, float y, float tanX, float tanY, float radius)
  • close ()
  • bool
    empty () const
  • clear ()
  • size_t
    getNumContours () const
  • const Path2d &
    getContour (size_t i) const
  • getContour (size_t i)
  • const std::vector< Path2d > &
    getContours () const
  • std::vector< Path2d > &
    getContours ()
  • const vec2 &
    getCurrentPoint () const
  • appendContour (const Path2d &contour)
  • removeContour (size_t i)