Clean up constructors for Object and Sphere

Use default arguments instead of multiple constructors. I forgot about those! Use Vector4s all around.
This commit is contained in:
Eryn Wells 2014-08-09 08:57:41 -07:00
parent 8ccfbc0498
commit ab9ac5e963
4 changed files with 28 additions and 49 deletions

View file

@ -10,6 +10,8 @@
#include "basics.h"
#include "object.h"
#include "basics/basics.hh"
namespace charles {
@ -17,9 +19,7 @@ class Sphere
: public Object
{
public:
Sphere();
Sphere(Double r);
Sphere(Vector3 o, Double r);
Sphere(const basics::Vector4& origin = basics::Vector4(), Double radius = 1.0);
Double GetRadius() const;
void SetRadius(Double r);