Player12
An open source football management simulator
Loading...
Searching...
No Matches
match_render_math.h File Reference
#include <array>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <numbers>
#include <span>
#include "global/types.h"
#include "model/match_tuning.h"

Go to the source code of this file.

Classes

struct  RenderMath::Vec3
 
struct  RenderMath::Vec4
 
struct  RenderMath::Mat4
 
struct  RenderMath::ScreenRect
 
struct  RenderMath::ScreenPoint
 
struct  RenderMath::Projection
 
class  RenderMath::ShirtNumbers
 

Namespaces

namespace  RenderMath
 

Functions

constexpr float RenderMath::dot (Vec3 a, Vec3 b)
 
constexpr Vec3 RenderMath::cross (Vec3 a, Vec3 b)
 
float RenderMath::length (Vec3 a)
 
Vec3 RenderMath::normalize (Vec3 a)
 
constexpr Vec3 RenderMath::lerp (Vec3 a, Vec3 b, float t)
 
Mat4 RenderMath::lookAt (Vec3 eye, Vec3 target, Vec3 up)
 
Mat4 RenderMath::perspective (float verticalFovRadians, float aspect, float nearPlane, float farPlane)
 
template<typename Vertex , typename WOf , typename Interpolate >
std::size_t RenderMath::clipConvexToNearPlane (std::span< const Vertex > input, std::span< Vertex > output, float nearPlane, WOf wOf, Interpolate interpolate)
 
constexpr Vec4 RenderMath::lerp (Vec4 a, Vec4 b, float t)
 
std::size_t RenderMath::clipPolygonToNearPlane (std::span< const Vec4 > input, std::span< Vec4 > output, float nearPlane)
 
float RenderMath::wrapAngle (float angle)
 
float RenderMath::lerpAngle (float from, float to, float t)
 
float RenderMath::dampingFactor (float ratePerSecond, float deltaSeconds)
 
constexpr Vec3 RenderMath::worldFromPitch (Vector2F normalized, float heightMetres=0.0f)
 
float RenderMath::worldYawFromFacing (float facingAngle)