Shape2d /

#includecinder/Shape2d.h

Public Member Functions

  • void
    moveTo (const vec2 &p)
  • void
    moveTo (float x, float y)
  • void
    lineTo (const vec2 &p)
  • void
    lineTo (float x, float y)
  • void
    quadTo (const vec2 &p1, const vec2 &p2)
  • void
    quadTo (float x1, float y1, float x2, float y2)
  • void
    curveTo (const vec2 &p1, const vec2 &p2, const vec2 &p3)
  • void
    curveTo (float x1, float y1, float x2, float y2, float x3, float y3)
  • void
    arc (const vec2 &center, float radius, float startRadians, float endRadians, bool forward=true)
  • void
    arc (float centerX, float centerY, float radius, float startRadians, float endRadians, bool forward=true)
  • void
    arcTo (const vec2 &p, const vec2 &t, float radius)
  • void
    arcTo (float x, float y, float tanX, float tanY, float radius)
  • void
    close ()
  • bool
    empty () const
  • void
    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
  • void
    appendContour (const Path2d &contour)
  • void
    removeContour (size_t i)