class
#include <normal.hpp>
generic_normal
Contents
Public types
-
using vec3_type = vector3_
type -
using component_type = typename vec3_type::
component_type
Public static functions
-
static auto cross(const generic_
normal& n1, const generic_ normal& other) -> MVM_INLINE_NODISCARD generic_ normal noexcept -
static auto cross(const generic_
normal& n1, const vec3_ type& other) -> MVM_INLINE_NODISCARD generic_ normal noexcept -
static auto reflect(const generic_
normal& n1, const generic_ normal& normalv) -> MVM_INLINE_NODISCARD generic_ normal noexcept -
static auto reflect(const vec3_
type& incident, const vec3_ type& normalv) -> MVM_INLINE_NODISCARD generic_ normal noexcept -
static auto refract(const vec3_
type& incident, const generic_ normal& normalv, component_ type ior) -> MVM_INLINE_NODISCARD generic_ normal noexcept -
static auto refract(const vec3_
type& incident, const vec3_ type& normalv, component_ type ior) -> MVM_INLINE_NODISCARD generic_ normal noexcept -
static auto x_axis() -> MVM_INLINE_NODISCARD generic_
normal noexcept -
static auto y_axis() -> MVM_INLINE_NODISCARD generic_
normal noexcept -
static auto z_axis() -> MVM_INLINE_NODISCARD generic_
normal noexcept -
static auto right() -> MVM_INLINE_NODISCARD generic_
normal noexcept -
static auto left() -> MVM_INLINE_NODISCARD generic_
normal noexcept -
static auto up() -> MVM_INLINE_NODISCARD generic_
normal noexcept -
static auto down() -> MVM_INLINE_NODISCARD generic_
normal noexcept -
static auto forward() -> MVM_INLINE_NODISCARD generic_
normal noexcept -
static auto backward() -> MVM_INLINE_NODISCARD generic_
normal noexcept
Public functions
- auto generic_normal() -> MVM_INLINE_NODISCARD defaulted noexcept
-
auto generic_normal(const generic_
normal&) -> MVM_INLINE_NODISCARD defaulted noexcept -
auto generic_normal(generic_
normal&&) -> MVM_INLINE_NODISCARD defaulted noexcept -
auto operator=(const generic_
normal&) -> MVM_INLINE_NODISCARD generic_ normal& defaulted noexcept -
auto operator=(generic_
normal&&) -> MVM_INLINE_NODISCARD generic_ normal& defaulted noexcept -
auto ~generic_normal() -> MVM_
INLINE defaulted noexcept -
auto generic_normal(const vec3_
type& vec) -> MVM_INLINE_NODISCARD noexcept -
auto generic_normal(component_
type x, component_ type y, component_ type z) -> MVM_INLINE_NODISCARD noexcept -
auto operator==(const generic_
normal& other) const -> MVM_INLINE_NODISCARD bool noexcept -
auto operator!=(const generic_
normal& other) const -> MVM_INLINE_NODISCARD bool noexcept -
auto operator-() const -> MVM_INLINE_NODISCARD generic_
normal noexcept -
auto operator+(const generic_
normal& other) const -> MVM_INLINE_NODISCARD generic_ normal noexcept -
auto operator-(const generic_
normal& other) const -> MVM_INLINE_NODISCARD generic_ normal noexcept -
auto get_component(int index) const -> MVM_INLINE_NODISCARD component_
type noexcept -
auto set_component(int index,
component_
type value) -> MVM_INLINE_NODISCARD generic_ normal& noexcept -
auto x() const -> MVM_INLINE_NODISCARD component_
type noexcept -
auto y() const -> MVM_INLINE_NODISCARD component_
type noexcept -
auto z() const -> MVM_INLINE_NODISCARD component_
type noexcept -
auto set(component_
type x, component_ type y, component_ type z) -> MVM_INLINE_NODISCARD generic_ normal& noexcept -
auto set(const vec3_
type& vec) -> MVM_INLINE_NODISCARD generic_ normal& noexcept -
auto set(const generic_
normal& vec) -> MVM_INLINE_NODISCARD generic_ normal& noexcept -
auto dot(const generic_
normal& n1, const generic_ normal& n2) const -> MVM_INLINE_NODISCARD component_ type noexcept -
auto angle_between(const generic_
normal& n1, const generic_ normal& n2) const -> MVM_INLINE_NODISCARD component_ type noexcept -
auto length() const -> MVM_INLINE_NODISCARD component_
type noexcept -
auto squared_length() const -> MVM_INLINE_NODISCARD component_
type noexcept -
auto reciprocal_length() const -> MVM_INLINE_NODISCARD component_
type noexcept -
auto vec() -> MVM_INLINE_NODISCARD const vec3_
type& noexcept