Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
spitfire math cVec3 Added single float constructor.
  • Loading branch information
pilkch committed Nov 26, 2015
1 parent fa7dda2 commit ca69c7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/spitfire/math/cVec3.h
Expand Up @@ -15,6 +15,7 @@ namespace spitfire
{
public:
cVec3() : x(0.0f), y(0.0f), z(0.0f) {}
cVec3(float value) : x(value), y(value), z(value) {}
cVec3(float newX, float newY, float newZ) : x(newX), y(newY), z(newZ) {}
explicit cVec3(const float* rhs) { x = *rhs; y = rhs[1]; z = rhs[2]; }
cVec3(const cVec3& rhs) : x(rhs.x), y(rhs.y), z(rhs.z) {}
Expand Down

0 comments on commit ca69c7a

Please sign in to comment.