Files
botw/lib/sead/include/math/seadMathBase.h
T
Léo Lam 18c60323a9 Switch to subrepos
git subrepo clone https://github.com/open-ead/sead lib/sead

subrepo:
  subdir:   "lib/sead"
  merged:   "1b66e825d"
upstream:
  origin:   "https://github.com/open-ead/sead"
  branch:   "master"
  commit:   "1b66e825d"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

git subrepo clone (merge) https://github.com/open-ead/nnheaders lib/NintendoSDK

subrepo:
  subdir:   "lib/NintendoSDK"
  merged:   "9ee21399f"
upstream:
  origin:   "https://github.com/open-ead/nnheaders"
  branch:   "master"
  commit:   "9ee21399f"
git-subrepo:
  version:  "0.4.3"
  origin:   "ssh://git@github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

git subrepo clone https://github.com/open-ead/agl lib/agl

subrepo:
  subdir:   "lib/agl"
  merged:   "7c063271b"
upstream:
  origin:   "https://github.com/open-ead/agl"
  branch:   "master"
  commit:   "7c063271b"
git-subrepo:
  version:  "0.4.3"
  origin:   "ssh://git@github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

git subrepo clone https://github.com/open-ead/EventFlow lib/EventFlow

subrepo:
  subdir:   "lib/EventFlow"
  merged:   "c35d21b34"
upstream:
  origin:   "https://github.com/open-ead/EventFlow"
  branch:   "master"
  commit:   "c35d21b34"
git-subrepo:
  version:  "0.4.3"
  origin:   "ssh://git@github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2022-03-21 21:31:42 +01:00

102 lines
1.1 KiB
C++

#pragma once
#include <array>
namespace sead
{
template <typename T>
struct BaseVec2
{
union
{
struct
{
T x;
T y;
};
std::array<T, 2> e;
};
};
template <typename T>
struct BaseVec3
{
union
{
struct
{
T x;
T y;
T z;
};
std::array<T, 3> e;
};
};
template <typename T>
struct BaseVec4
{
union
{
struct
{
T x;
T y;
T z;
T w;
};
std::array<T, 4> e;
};
};
template <typename T>
struct BaseQuat
{
T x;
T y;
T z;
T w;
};
template <typename T>
struct BaseMtx22
{
union
{
T m[2][2];
T a[4];
};
};
template <typename T>
struct BaseMtx33
{
union
{
T m[3][3];
T a[9];
};
};
template <typename T>
struct BaseMtx34
{
union
{
T m[3][4];
T a[12];
};
};
template <typename T>
struct BaseMtx44
{
union
{
T m[4][4];
T a[16];
};
};
} // namespace sead