VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
Math.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// Include this for Vector and QAngle instead of the SDK's <mathlib/vector.h>.
4
#include <mathlib/vector.h>
5
6
namespace
VoltMod
7
{
8
9
/** The engine's Vector. Its default constructor leaves the value uninitialised; write
10
* `Vector{0.0f, 0.0f, 0.0f}` for a zero. */
11
using
Vector
=
::Vector
;
12
13
/** The engine's angles in degrees: (pitch, yaw, roll), positive pitch looks down. */
14
using
QAngle
=
::QAngle
;
15
16
/** The unit vector @p angles aim along; roll does not change it. */
17
Vector
AngleToForward
(
const
QAngle
&
angles
);
18
19
}
// namespace VoltMod
VoltMod
Definition
Options.hpp:13
VoltMod::ReadFile
static std::string ReadFile(const std::filesystem::path &path)
Definition
Loader.cpp:56
VoltMod::AngleToForward
Vector AngleToForward(const QAngle &angles)
Definition
Math.cpp:7
VoltMod::QAngle
::QAngle QAngle
Definition
Math.hpp:14
VoltMod::Vector
::Vector Vector
Definition
Math.hpp:11
include
VoltMod
Engine
Math.hpp
Generated by
1.9.8