Skip to content

Commit

Permalink
Add default values for ofPath::Command members. (#6344)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakercp authored and arturoc committed Jul 27, 2019
1 parent 7773c02 commit 575d5bc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libs/openFrameworks/graphics/ofPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ ofPath::Command::Command(Type type)
ofPath::Command::Command(Type type , const glm::vec3 & p)
:type(type)
,to(p)
,cp1(glm::vec3())
,cp2(glm::vec3())
,radiusX(0)
,radiusY(0)
,angleBegin(0)
,angleEnd(0)
{}

//----------------------------------------------------------
Expand All @@ -25,13 +31,19 @@ ofPath::Command::Command(Type type , const glm::vec3 & p, const glm::vec3 & cp1,
,to(p)
,cp1(cp1)
,cp2(cp2)
,radiusX(0)
,radiusY(0)
,angleBegin(0)
,angleEnd(0)
{
}

//----------------------------------------------------------
ofPath::Command::Command(Type type , const glm::vec3 & centre, float radiusX, float radiusY, float angleBegin, float angleEnd)
:type(type)
,to(centre)
,cp1(glm::vec3())
,cp2(glm::vec3())
,radiusX(radiusX)
,radiusY(radiusY)
,angleBegin(angleBegin)
Expand Down

0 comments on commit 575d5bc

Please sign in to comment.