Euphoria
axisangle.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 
5 #include "base/vec3.h"
6 #include "base/angle.h"
7 
8 namespace eu
9 {
10  struct AxisAngle
11  {
14 
17 
18  [[nodiscard]] static AxisAngle
20 
21  private:
22  AxisAngle(const unit3f& ax, const Angle& ang);
23  };
24 
25  std::string to_string(const AxisAngle& aa);
26 
27 }
28 
ADD_DEFAULT_FORMATTER(eu::AxisAngle, std::string, eu::to_string)
Definition: assert.h:90
std::string to_string(const Aabb &a)
Definition: aabb.cc:110
unit3f axis
a unit-vector
Definition: axisangle.h:13
Angle angle
rotation according to right-hand rule
Definition: axisangle.h:16
static AxisAngle from_right_hand_around(const unit3f &axis, const Angle &angle)
Definition: axisangle.cc:14