KiCad PCB EDA Suite
Loading...
Searching...
No Matches
vector_utils.cpp File Reference

Go to the source code of this file.

Functions

template<typename T >
static constexpr T RoundNearest (T x, T g)
 
template<typename T >
static constexpr T RoundDown (T x, T g)
 
template<typename T >
static constexpr T RoundUp (T x, T g)
 

Function Documentation

◆ RoundDown()

template<typename T >
static constexpr T RoundDown ( x,
g 
)
staticconstexpr

Definition at line 76 of file vector_utils.cpp.

Referenced by KIGEOM::RoundNW().

◆ RoundNearest()

template<typename T >
static constexpr T RoundNearest ( x,
g 
)
staticconstexpr

Definition at line 70 of file vector_utils.cpp.

Referenced by KIGEOM::RoundGrid().

◆ RoundUp()

template<typename T >
static constexpr T RoundUp ( x,
g 
)
staticconstexpr

Definition at line 82 of file vector_utils.cpp.

Referenced by KIGEOM::RoundSE().