KiCad PCB EDA Suite
seg.cpp File Reference
#include <algorithm>
#include <geometry/seg.h>
#include <math/util.h>
#include <math/vector2d.h>
#include <trigo.h>

Go to the source code of this file.

Functions

template<typename T >
int sgn (T aVal)
 

Function Documentation

◆ sgn()

template<typename T >
int sgn ( aVal)

Definition at line 33 of file seg.cpp.

34 {
35  return ( T( 0 ) < aVal ) - ( aVal < T( 0 ) );
36 }