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:
parent
8ccfbc0498
commit
ab9ac5e963
4 changed files with 28 additions and 49 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue