bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
geom_point.h File Reference
#include "bitsim/bitsim_types.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <ostream>
#include <string>
#include <vector>
Include dependency graph for geom_point.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  bitsim::geometry::GeomPoint< spacedim, T >
 A class that describes a point with spacedim spatial dimension space. More...

Namespaces

namespace  bitsim
namespace  bitsim::geometry

Functions

template<int spacedim, typename T>
std::ostream & bitsim::geometry::operator<< (std::ostream &out, const GeomPoint< spacedim, T > &p)
 free functions that work on the GeomPoint<spacedim,T> class
template<int spacedim, typename T>
const GeomPoint< spacedim, T > bitsim::geometry::scale (const GeomPoint< spacedim, T > &t, T factor)
 scale the given point by facto and returns a copyr. This function does not change the entries of t.
template<int spacedim, typename T>
const GeomPoint< spacedim, T > bitsim::geometry::scale (const GeomPoint< spacedim, T > &t, const std::vector< T > &factors)
 scale the given point by the factors in vector
template<int spacedim, typename T>
const GeomPoint< spacedim, T > bitsim::geometry::abs (const GeomPoint< spacedim, T > &t)
 Return a point having the absolute values of the given point object.
template<int spacedim, typename T>
const GeomPoint< spacedim, T > bitsim::geometry::operator* (T factor, const GeomPoint< spacedim, T > &t)
 Allow multiplication from left with a factor.
template<int spacedim, typename T>
const GeomPoint< spacedim, T > bitsim::geometry::operator* (const GeomPoint< spacedim, T > &t, T factor)
template<int spacedim, typename T>
const GeomPoint< spacedim, T > bitsim::geometry::operator/ (const GeomPoint< spacedim, T > &t, T factor)
template<int spacedim, typename T>
const GeomPoint< spacedim, T > bitsim::geometry::operator+ (const GeomPoint< spacedim, T > &t1, const GeomPoint< spacedim, T > &t2)
template<int spacedim, typename T>
const GeomPoint< spacedim, T > bitsim::geometry::operator- (const GeomPoint< spacedim, T > &t1, const GeomPoint< spacedim, T > &t2)
template<int spacedim, typename T>
bool bitsim::geometry::operator== (const GeomPoint< spacedim, T > &t1, const GeomPoint< spacedim, T > &t2)
template<int spacedim, typename T>
bool bitsim::geometry::operator!= (const GeomPoint< spacedim, T > &t1, const GeomPoint< spacedim, T > &t2)