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