opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
ellipsoid_functions.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <array>
7
8namespace osc
9{
10 // returns the direction of each axis of `ellipsoid`
11 constexpr std::array<Vector3, 3> axis_directions_of(const Ellipsoid& ellipsoid)
12 {
13 return {
14 ellipsoid.orientation * Vector3{1.0f, 0.0f, 0.0f},
15 ellipsoid.orientation * Vector3{0.0f, 1.0f, 0.0f},
16 ellipsoid.orientation * Vector3{0.0f, 0.0f, 1.0f},
17 };
18 }
19}
Definition custom_decoration_generator.h:5
constexpr std::array< Vector3, 3 > axis_directions_of(const Ellipsoid &ellipsoid)
Definition ellipsoid_functions.h:11
constexpr U to(T &&value)
Definition conversion.h:56
Definition ellipsoid.h:9