KiCad PCB EDA Suite
|
#include <limits>
#include <iostream>
#include <sstream>
#include <type_traits>
#include <math/util.h>
Go to the source code of this file.
Classes | |
struct | VECTOR2_TRAITS< T > |
Traits class for VECTOR2. More... | |
struct | VECTOR2_TRAITS< int > |
class | VECTOR2< T > |
Define a general 2D-vector/point. More... | |
struct | std::hash< VECTOR2I > |
struct | std::less< VECTOR2I > |
Namespaces | |
namespace | std |
STL namespace. | |
Typedefs | |
typedef VECTOR2< double > | VECTOR2D |
typedef VECTOR2< int > | VECTOR2I |
typedef VECTOR2< unsigned int > | VECTOR2U |
Functions | |
template<class T > | |
std::ostream & | operator<< (std::ostream &aStream, const VECTOR2< T > &aVector) |
template<class T > | |
VECTOR2< T > | operator* (const T &aFactor, const VECTOR2< T > &aVector) |
template<class T > | |
const VECTOR2< T > | LexicographicalMax (const VECTOR2< T > &aA, const VECTOR2< T > &aB) |
template<class T > | |
const VECTOR2< T > | LexicographicalMin (const VECTOR2< T > &aA, const VECTOR2< T > &aB) |
template<class T > | |
int | LexicographicalCompare (const VECTOR2< T > &aA, const VECTOR2< T > &aB) |
template<class T > | |
std::enable_if<!std::numeric_limits< T >::is_integer, bool >::type | equals (VECTOR2< T > const &aFirst, VECTOR2< T > const &aSecond, T aEpsilon=std::numeric_limits< T >::epsilon()) |
Template to compare two VECTOR2<T> values for equality within a required epsilon. More... | |
Definition at line 587 of file vector2d.h.
Definition at line 588 of file vector2d.h.
Definition at line 589 of file vector2d.h.
std::enable_if<!std::numeric_limits< T >::is_integer, bool >::type equals | ( | VECTOR2< T > const & | aFirst, |
VECTOR2< T > const & | aSecond, | ||
T | aEpsilon = std::numeric_limits<T>::epsilon() |
||
) |
Template to compare two VECTOR2<T> values for equality within a required epsilon.
aFirst | value to compare. |
aSecond | value to compare. |
aEpsilon | allowed error. |
Definition at line 567 of file vector2d.h.
References equals(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by equals().
Definition at line 539 of file vector2d.h.
References VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by CADSTAR_SCH_ARCHIVE_LOADER::fixUpLibraryPins().
const VECTOR2< T > LexicographicalMax | ( | const VECTOR2< T > & | aA, |
const VECTOR2< T > & | aB | ||
) |
Definition at line 515 of file vector2d.h.
References VECTOR2< T >::x, and VECTOR2< T >::y.
const VECTOR2< T > LexicographicalMin | ( | const VECTOR2< T > & | aA, |
const VECTOR2< T > & | aB | ||
) |
Definition at line 527 of file vector2d.h.
References VECTOR2< T >::x, and VECTOR2< T >::y.
Definition at line 449 of file vector2d.h.
References VECTOR2< T >::x, and VECTOR2< T >::y.
std::ostream & operator<< | ( | std::ostream & | aStream, |
const VECTOR2< T > & | aVector | ||
) |
Definition at line 580 of file vector2d.h.
References VECTOR2< T >::x, and VECTOR2< T >::y.