NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
c_m3d.hpp
Go to the documentation of this file.
1#pragma once
2#include <types.h>
3#include <lib/rvl/mtx/vec.h>
4/// @file
5/// @details [cM3d stands for C Math 3D. It is unknown why a namespace wasn't used].
6
7/// @addtogroup clib
8/// @{
9
10/// @brief Obtains a position given a starting point, a direction and a scalar multiplier.
11/// @details The function can be summed up as: @p pos = @p dir * @p mult + @p start
12void cM3d_calcInDivPos1(const Vec *start, const Vec *dir, float mult, Vec *pos);
13
14/// @brief Obtains an intermediate position between two given points using a scalar multiplier.
15/// @details The function can be summed up as: @p pos = ( @p b - @p a ) * @p mult + @p a
16void cM3d_calcInDivPos2(const Vec *a, const Vec *b, float mult, Vec *pos);
17
18/// @}
void cM3d_calcInDivPos2(const Vec *a, const Vec *b, float mult, Vec *pos)
Obtains an intermediate position between two given points using a scalar multiplier.
Definition c_m3d.cpp:10
void cM3d_calcInDivPos1(const Vec *start, const Vec *dir, float mult, Vec *pos)
Obtains a position given a starting point, a direction and a scalar multiplier.
Definition c_m3d.cpp:4
A three-dimensional floating point vector.
Definition vec.h:18