template struct geom::TSphere — HIRO 0.7.0 documentation

# template struct geom::TSphere

Template spheroid of in an arbitrary dimension.

    #include <GeometryStructures.h>

    template <int N, typename T>
    struct TSphere {
        // fields

        glm::vec<N, T> center = glm::vec<N, T>(0);
        T radius = 0;

        // construction

        TSphere();
        TSphere(const glm::vec<N, T>& _center, const T _radius);

        // methods

        T GetDiameter() const;
        void SetDiameter(T value);
    };