Castor3D 0.16.0
Multiplatform 3D engine
Classes | Espaces de nommage | Fonctions
Référence du fichier Coords.hpp

Classes

class  castor::Coords< T, Count >
 Classe de points à dimensions statiques. Plus de détails...
 

Espaces de nommage

namespace  castor
 
namespace  castor::point
 Fonctions d'aide pour les Point.
 

Fonctions

template<typename T , uint32_t Count>
void castor::point::negate (Coords< T, Count > &point)
 Négative chaque donnée du point donné
 
template<typename T , uint32_t Count>
void castor::point::normalise (Coords< T, Count > &point)
 Normalise le point.
 
template<typename T , uint32_t Count>
castor::point::dot (Coords< T, Count > const &lhs, Coords< T, Count > const &rhs)
 Calcule le produit scalaire entre 2 points.
 
template<typename T , typename U >
Point< T, 3 > castor::point::cross (Coords< T, 3 > const &lhs, Coords< U, 3 > const &rhs)
 Opérateur de produit vectoriel.
 
template<typename T , uint32_t Count>
double castor::point::cosTheta (Coords< T, Count > const &lhs, Coords< T, Count > const &rhs)
 Calcule le cosinus trigonométrique de l'angle entre 2 points.
 
template<typename T , uint32_t Count>
double castor::point::lengthSquared (Coords< T, Count > const &point)
 Calcule le carré de la longueur Euclidienne du vecteur.
 
template<typename T , uint32_t Count>
double castor::point::length (Coords< T, Count > const &point)
 Calcule la longueur Euclidienne du vecteur.
 
template<typename T , uint32_t Count>
double castor::point::lengthManhattan (Coords< T, Count > const &point)
 Calcule la longueur de Manhattan du vecteur.
 
template<typename T , uint32_t Count>
double castor::point::lengthMinkowski (Coords< T, Count > const &point, double order)
 Calcule la longueur de Minkowski du vecteur.
 
template<typename T , uint32_t Count>
double castor::point::lengthChebychev (Coords< T, Count > const &point)
 Calcule la longueur de Chebychev du vecteur.
 
template<typename T , uint32_t Count>
double castor::point::distanceSquared (Coords< T, Count > const &lhs, Coords< T, Count > const &rhs)
 Calcule le carré de la distance Euclidienne entre deux points.
 
template<typename T , uint32_t Count>
double castor::point::distance (Coords< T, Count > const &lhs, Coords< T, Count > const &rhs)
 Calcule la norme Euclidienne entre deux points.
 
template<typename T , uint32_t Count>
double castor::point::distanceManhattan (Coords< T, Count > const &lhs, Coords< T, Count > const &rhs)
 Calcule la distance de Manhattan entre deux points.
 
template<typename T , uint32_t Count>
double castor::point::distanceMinkowski (Coords< T, Count > const &lhs, Coords< T, Count > const &rhs, double order)
 Calcule la distance de Minkowski entre deux points.
 
template<typename T , uint32_t Count>
double castor::point::distanceChebychev (Coords< T, Count > const &lhs, Coords< T, Count > const &rhs)
 Calcule la distance de Chebychev entre deux points.
 
template<typename T , uint32_t Count, typename U , uint32_t UCount>
bool castor::operator== (Coords< T, Count > const &lhs, Coords< U, UCount > const &rhs)
 
template<typename T , uint32_t Count, typename U , uint32_t UCount>
bool castor::operator!= (Coords< T, Count > const &lhs, Coords< U, UCount > const &rhs)
 
template<typename T , uint32_t Count>
Point< std::remove_cv_t< T >, Count > castor::operator- (Coords< T, Count > const &rhs)
 
template<typename T , uint32_t Count, typename U , uint32_t UCount>
Point< std::remove_cv_t< T >, Count > castor::operator+ (Coords< T, Count > const &lhs, Coords< U, UCount > const &rhs)
 
template<typename T , uint32_t Count, typename U , uint32_t UCount>
Point< std::remove_cv_t< T >, Count > castor::operator- (Coords< T, Count > const &lhs, Coords< U, UCount > const &rhs)
 
template<typename T , uint32_t Count, typename U , uint32_t UCount>
Point< std::remove_cv_t< T >, Count > castor::operator* (Coords< T, Count > const &lhs, Coords< U, UCount > const &rhs)
 
template<typename T , uint32_t Count, typename U , uint32_t UCount>
Point< std::remove_cv_t< T >, Count > castor::operator/ (Coords< T, Count > const &lhs, Coords< U, UCount > const &rhs)
 
template<typename T , uint32_t Count, typename U >
Point< std::remove_cv_t< T >, Count > castor::operator+ (Coords< T, Count > const &lhs, U const *rhs)
 
template<typename T , uint32_t Count, typename U >
Point< std::remove_cv_t< T >, Count > castor::operator- (Coords< T, Count > const &lhs, U const *rhs)
 
template<typename T , uint32_t Count, typename U >
Point< std::remove_cv_t< T >, Count > castor::operator* (Coords< T, Count > const &lhs, U const *rhs)
 
template<typename T , uint32_t Count, typename U >
Point< std::remove_cv_t< T >, Count > castor::operator/ (Coords< T, Count > const &lhs, U const *rhs)
 
template<typename T , uint32_t Count, typename U >
Point< std::remove_cv_t< T >, Count > castor::operator+ (Coords< T, Count > const &lhs, T const &rhs)
 
template<typename T , uint32_t Count, typename U >
Point< std::remove_cv_t< T >, Count > castor::operator- (Coords< T, Count > const &lhs, T const &rhs)
 
template<typename T , uint32_t Count>
Point< std::remove_cv_t< T >, Count > castor::operator* (Coords< T, Count > const &lhs, T const &rhs)
 
template<typename T , uint32_t Count>
Point< std::remove_cv_t< T >, Count > castor::operator/ (Coords< T, Count > const &lhs, T const &rhs)
 
template<typename T , uint32_t Count>
Stringcastor::operator<< (String &out, Coords< T, Count > const &in)
 
template<typename T , uint32_t Count>
Stringcastor::operator>> (String &in, Coords< T, Count > &out)
 
template<typename T , uint32_t Count, typename CharType >
std::basic_ostream< CharType > & castor::operator<< (std::basic_ostream< CharType > &out, Coords< T, Count > const &in)
 
template<typename T , uint32_t Count, typename CharType >
std::basic_istream< CharType > & castor::operator>> (std::basic_istream< CharType > &in, Coords< T, Count > &out)