tec::Orientation
#include <transforms.hpp>
Public Functions
Name | |
---|---|
Orientation(glm::vec3 rot) | |
Orientation(glm::quat q) | |
Orientation() =default | |
void | Rotate(const glm::vec3 amount =glm::vec3(0.0f)) |
void | OrientedRotate(const glm::vec3 amount) |
void | Out(proto::Component * target) const |
void | Out(proto::Quaternion * comp) const |
void | In(const proto::Component & source) |
void | In(const proto::Quaternion & comp) |
Public Attributes
Name | |
---|---|
glm::quat | value |
glm::vec3 | rotation |
Public Functions Documentation
function Orientation
inline Orientation(
glm::vec3 rot
)
function Orientation
inline Orientation(
glm::quat q
)
function Orientation
Orientation() =default
function Rotate
void Rotate(
const glm::vec3 amount =glm::vec3(0.0f)
)
function OrientedRotate
void OrientedRotate(
const glm::vec3 amount
)
function Out
void Out(
proto::Component * target
) const
function Out
void Out(
proto::Quaternion * comp
) const
function In
void In(
const proto::Component & source
)
function In
void In(
const proto::Quaternion & comp
)
Public Attributes Documentation
variable value
glm::quat value {1.f, 0.f, 0.f, 0.f};
variable rotation
glm::vec3 rotation {0.f, 0.f, 0.f};
Updated on 2022-07-24 at 19:27:35 +0000