#include <cmath>
#include <cstdint>
#include "math.h"
Go to the source code of this file.
|
template<typename T > |
constexpr vector2_base< T > | rotate (const vector2_base< T > &a, float angle) |
|
template<typename T > |
T | distance (const vector2_base< T > a, const vector2_base< T > &b) |
|
template<typename T > |
constexpr T | dot (const vector2_base< T > a, const vector2_base< T > &b) |
|
float | length (const vector2_base< float > &a) |
|
float | length (const vector2_base< int > &a) |
|
float | length_squared (const vector2_base< float > &a) |
|
constexpr float | angle (const vector2_base< float > &a) |
|
template<typename T > |
constexpr vector2_base< T > | normalize_pre_length (const vector2_base< T > &v, T len) |
|
vector2_base< float > | normalize (const vector2_base< float > &v) |
|
vector2_base< float > | direction (float angle) |
|
vector2_base< float > | random_direction () |
|
template<typename T > |
constexpr bool | closest_point_on_line (vector2_base< T > line_pointA, vector2_base< T > line_pointB, vector2_base< T > target_point, vector2_base< T > &out_pos) |
|
template<typename T > |
T | distance (const vector3_base< T > &a, const vector3_base< T > &b) |
|
template<typename T > |
constexpr T | dot (const vector3_base< T > &a, const vector3_base< T > &b) |
|
template<typename T > |
constexpr vector3_base< T > | cross (const vector3_base< T > &a, const vector3_base< T > &b) |
|
float | length (const vector3_base< float > &a) |
|
vector3_base< float > | normalize (const vector3_base< float > &v) |
|
◆ bvec2
◆ bvec3
◆ bvec4
◆ ivec2
◆ ivec3
◆ ivec4
◆ ubvec4
◆ vec2
◆ vec3
◆ vec4
◆ angle()
◆ closest_point_on_line()
◆ cross()
◆ direction()
◆ distance() [1/2]
◆ distance() [2/2]
◆ dot() [1/2]
◆ dot() [2/2]
◆ length() [1/3]
◆ length() [2/3]
◆ length() [3/3]
◆ length_squared()
◆ normalize() [1/2]
◆ normalize() [2/2]
◆ normalize_pre_length()
◆ random_direction()
◆ rotate()