]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Sphere.hh
beginning CD implementation
[chaz/yoink] / src / Moof / Sphere.hh
index 7f7a76373dfd7f0d228f33c9c36379c25a57959c..d6903564eac5309c59f6f793eef60e8ea0c0844b 100644 (file)
@@ -62,6 +62,12 @@ struct Sphere : public Cullable, public Drawable
                radius = r;
        }
 
+       void init(const Vector3& p, const Vector3& o)
+       {
+               point = p;
+               radius = (o - p).length();
+       }
+
        void encloseVertices(const Vector3 vertices[], unsigned count);
 
        void draw(Scalar alpha = 0.0) const;
This page took 0.019839 seconds and 4 git commands to generate.