SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
Loading...
Searching...
No Matches
shz_vector.hpp File Reference
#include <compare>
#include <concepts>
#include "shz_vector.h"
#include "shz_scalar.hpp"
#include "shz_trig.hpp"
Include dependency graph for shz_vector.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  shz::vecN< CRTP, C, R >
 
struct  shz::vec2
 
struct  shz::vec3
 
struct  shz::vec4
 

Namespaces

namespace  shz
 

Typedefs

using shz::vec2_t
 
using shz::vec3_t
 
using shz::vec4_t
 

Functions

template<typename CRTP, typename C, size_t R>
CRTP shz::operator+ (vecN< CRTP, C, R > lhs, vecN< CRTP, C, R > rhs) noexcept
 
template<typename CRTP, typename C, size_t R>
CRTP shz::operator- (vecN< CRTP, C, R > lhs, vecN< CRTP, C, R > rhs) noexcept
 
template<typename CRTP, typename C, size_t R>
CRTP shz::operator* (vecN< CRTP, C, R > lhs, vecN< CRTP, C, R > rhs) noexcept
 
template<typename CRTP, typename C, size_t R>
CRTP shz::operator/ (vecN< CRTP, C, R > lhs, vecN< CRTP, C, R > rhs) noexcept
 
template<typename CRTP, typename C, size_t R>
CRTP shz::operator* (vecN< CRTP, C, R > lhs, float rhs) noexcept
 
template<typename CRTP, typename C, size_t R>
CRTP shz::operator* (float lhs, vecN< CRTP, C, R > rhs) noexcept
 
template<typename CRTP, typename C, size_t R>
CRTP shz::operator/ (vecN< CRTP, C, R > lhs, float rhs) noexcept
 
template<typename CRTP, typename C, size_t R>
CRTP shz::operator/ (float lhs, vecN< CRTP, C, R > rhs) noexcept
 

Detailed Description

C++ Vector types and operations.

This file provides types and mathematical functions for representing and operating on vectors within C++.

Author
2025 Falco Girgis
Todo
  • C++ proxy class equivalent for shz_vecN_deref().
  • C++ better swizzling mechanism

Definition in file shz_vector.hpp.