CubbyFlow::Sphere< N >::Builder Class Referencefinal
Front-end to create Sphere objects step by step. More...
#include <Core/Geometry/Sphere.hpp>
Inheritance diagram for CubbyFlow::Sphere< N >::Builder:
Public Member Functions | |
Builder & | WithCenter (const Vector< double, N > &_center) |
Returns builder with sphere center. More... | |
Builder & | WithRadius (double _radius) |
Returns builder with sphere radius. More... | |
Sphere< N > | Build () const |
Builds Sphere. More... | |
std::shared_ptr< Sphere< N > > | MakeShared () const |
Builds shared pointer of Sphere instance. More... | |
Public Member Functions inherited from CubbyFlow::SurfaceBuilderBase< N, Sphere< N >::Builder > | |
Sphere< N >::Builder & | WithIsNormalFlipped (bool isNormalFlipped) |
Returns builder with flipped normal flag. More... | |
Sphere< N >::Builder & | WithTranslation (const Vector< double, N > &translation) |
Returns builder with translation. More... | |
Sphere< N >::Builder & | WithOrientation (const Orientation< N > &orientation) |
Returns builder with orientation. More... | |
Sphere< N >::Builder & | WithTransform (const Transform< N > &transform) |
Returns builder with transform. More... | |
Additional Inherited Members | |
Protected Attributes inherited from CubbyFlow::SurfaceBuilderBase< N, Sphere< N >::Builder > | |
bool | m_isNormalFlipped |
Transform< N > | m_transform |
Detailed Description
template<size_t N>
class CubbyFlow::Sphere< N >::Builder
Front-end to create Sphere objects step by step.
Member Function Documentation
◆ Build()
template<size_t N>
Sphere<N> CubbyFlow::Sphere< N >::Builder::Build | ( | ) | const |
Builds Sphere.
◆ MakeShared()
template<size_t N>
std::shared_ptr<Sphere<N> > CubbyFlow::Sphere< N >::Builder::MakeShared | ( | ) | const |
Builds shared pointer of Sphere instance.
◆ WithCenter()
template<size_t N>
Builder& CubbyFlow::Sphere< N >::Builder::WithCenter | ( | const Vector< double, N > & | _center | ) |
Returns builder with sphere center.
◆ WithRadius()
template<size_t N>
Builder& CubbyFlow::Sphere< N >::Builder::WithRadius | ( | double | _radius | ) |
Returns builder with sphere radius.
The documentation for this class was generated from the following file:
- Core/Geometry/Sphere.hpp