Add geom::sphere primitive
This commit is contained in:
parent
3e0060d9cb
commit
47e3970deb
1 changed files with 15 additions and 0 deletions
15
libs/geom/include/psemek/geom/sphere.hpp
Normal file
15
libs/geom/include/psemek/geom/sphere.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <psemek/geom/point.hpp>
|
||||||
|
|
||||||
|
namespace psemek::geom
|
||||||
|
{
|
||||||
|
|
||||||
|
template <typename T, std::size_t N>
|
||||||
|
struct sphere
|
||||||
|
{
|
||||||
|
point<T, N> center;
|
||||||
|
T radius;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue