ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
geometry.cpp File Reference
#include "./asw/modules/geometry.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <limits>
#include <numbers>
#include <utility>
Include dependency graph for geometry.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{geometry.cpp}::Ray
 
struct  anonymous_namespace{geometry.cpp}::Segment
 

Namespaces

namespace  anonymous_namespace{geometry.cpp}
 

Functions

Vec2f anonymous_namespace{geometry.cpp}::rotate (const Vec2f &v, float cos_a, float sin_a)
 
float anonymous_namespace{geometry.cpp}::distance_to_segment (const Vec2f &p, const Vec2f &a, const Vec2f &b)
 
bool anonymous_namespace{geometry.cpp}::clip_segment (Vec2f &a, Vec2f &b, const Vec2f &min, const Vec2f &max)
 

Variables

constexpr float anonymous_namespace{geometry.cpp}::TAU = std::numbers::pi_v<float> * 2.0F
 
constexpr float anonymous_namespace{geometry.cpp}::CORNER_NUDGE = 0.0001F