Public Member Functions | Public Attributes | Friends | List of all members
math3d::vec3d< T > Struct Template Reference

#include <math3d.h>

Inheritance diagram for math3d::vec3d< T >:
Inheritance graph
[legend]

Public Member Functions

bool operator!= (const vec3d &o) const
 
template<typename S >
bool operator!= (const vec3d< S > &o) const
 
template<typename Scalar >
vec3d< T > & operator*= (const Scalar &s)
 
vec3d< T > operator+ (const vec3d< T > &p) const
 
template<typename S >
vec3d< T > & operator+= (const vec3d< S > &p)
 
vec3d< T > & operator+= (const vec3d< T > &p)
 
vec3d< T > operator- () const
 
vec3d< T > operator- (const vec3d< T > &p) const
 
template<typename S >
vec3d< T > & operator-= (const vec3d< S > &p)
 
vec3d< T > & operator-= (const vec3d< T > &p)
 
template<typename Scalar >
vec3d< T > & operator/= (const Scalar &s)
 
bool operator== (const vec3d &o) const
 
template<typename S >
bool operator== (const vec3d< S > &o) const
 
 vec3d ()
 
template<typename S >
 vec3d (const S *s)
 
template<typename S >
 vec3d (const vec3d< S > &s)
 
 vec3d (T x_, T y_, T z_)
 

Public Attributes

x
 
y
 
z
 

Friends

template<typename Scalar >
vec3d< T > operator* (const Scalar &s, const vec3d< T > &p)
 
template<typename Scalar >
vec3d< T > operator* (const vec3d< T > &p, const Scalar &s)
 
template<typename Scalar >
vec3d< T > operator/ (const vec3d< T > &p, const Scalar &s)
 
std::ostream & operator<< (std::ostream &os, const vec3d< T > &p)
 
std::istream & operator>> (std::istream &is, vec3d< T > &p)
 

Detailed Description

template<typename T>
struct math3d::vec3d< T >

Definition at line 68 of file math3d.h.

Constructor & Destructor Documentation

◆ vec3d() [1/4]

template<typename T >
math3d::vec3d< T >::vec3d ( )
inlineexplicit

Definition at line 72 of file math3d.h.

◆ vec3d() [2/4]

template<typename T >
math3d::vec3d< T >::vec3d ( x_,
y_,
z_ 
)
inline

Definition at line 73 of file math3d.h.

◆ vec3d() [3/4]

template<typename T >
template<typename S >
math3d::vec3d< T >::vec3d ( const vec3d< S > &  s)
inline

Definition at line 76 of file math3d.h.

◆ vec3d() [4/4]

template<typename T >
template<typename S >
math3d::vec3d< T >::vec3d ( const S *  s)
inline

Definition at line 79 of file math3d.h.

Member Function Documentation

◆ operator!=() [1/2]

template<typename T >
bool math3d::vec3d< T >::operator!= ( const vec3d< T > &  o) const
inline

Definition at line 163 of file math3d.h.

◆ operator!=() [2/2]

template<typename T >
template<typename S >
bool math3d::vec3d< T >::operator!= ( const vec3d< S > &  o) const
inline

Definition at line 169 of file math3d.h.

◆ operator*=()

template<typename T >
template<typename Scalar >
vec3d<T>& math3d::vec3d< T >::operator*= ( const Scalar &  s)
inline

Definition at line 144 of file math3d.h.

◆ operator+()

template<typename T >
vec3d<T> math3d::vec3d< T >::operator+ ( const vec3d< T > &  p) const
inline

Definition at line 81 of file math3d.h.

◆ operator+=() [1/2]

template<typename T >
template<typename S >
vec3d<T>& math3d::vec3d< T >::operator+= ( const vec3d< S > &  p)
inline

Definition at line 97 of file math3d.h.

◆ operator+=() [2/2]

template<typename T >
vec3d<T>& math3d::vec3d< T >::operator+= ( const vec3d< T > &  p)
inline

Definition at line 108 of file math3d.h.

◆ operator-() [1/2]

template<typename T >
vec3d<T> math3d::vec3d< T >::operator- ( ) const
inline

Definition at line 91 of file math3d.h.

◆ operator-() [2/2]

template<typename T >
vec3d<T> math3d::vec3d< T >::operator- ( const vec3d< T > &  p) const
inline

Definition at line 86 of file math3d.h.

◆ operator-=() [1/2]

template<typename T >
template<typename S >
vec3d<T>& math3d::vec3d< T >::operator-= ( const vec3d< S > &  p)
inline

Definition at line 117 of file math3d.h.

◆ operator-=() [2/2]

template<typename T >
vec3d<T>& math3d::vec3d< T >::operator-= ( const vec3d< T > &  p)
inline

Definition at line 125 of file math3d.h.

◆ operator/=()

template<typename T >
template<typename Scalar >
vec3d<T>& math3d::vec3d< T >::operator/= ( const Scalar &  s)
inline

Definition at line 134 of file math3d.h.

◆ operator==() [1/2]

template<typename T >
bool math3d::vec3d< T >::operator== ( const vec3d< T > &  o) const
inline

Definition at line 152 of file math3d.h.

◆ operator==() [2/2]

template<typename T >
template<typename S >
bool math3d::vec3d< T >::operator== ( const vec3d< S > &  o) const
inline

Definition at line 158 of file math3d.h.

Friends And Related Function Documentation

◆ operator* [1/2]

template<typename T >
template<typename Scalar >
vec3d<T> operator* ( const Scalar &  s,
const vec3d< T > &  p 
)
friend

Definition at line 181 of file math3d.h.

◆ operator* [2/2]

template<typename T >
template<typename Scalar >
vec3d<T> operator* ( const vec3d< T > &  p,
const Scalar &  s 
)
friend

Definition at line 175 of file math3d.h.

◆ operator/

template<typename T >
template<typename Scalar >
vec3d<T> operator/ ( const vec3d< T > &  p,
const Scalar &  s 
)
friend

Definition at line 187 of file math3d.h.

◆ operator<<

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const vec3d< T > &  p 
)
friend

Definition at line 192 of file math3d.h.

◆ operator>>

template<typename T >
std::istream& operator>> ( std::istream &  is,
vec3d< T > &  p 
)
friend

Definition at line 197 of file math3d.h.

Member Data Documentation

◆ x

template<typename T >
T math3d::vec3d< T >::x

Definition at line 70 of file math3d.h.

◆ y

template<typename T >
T math3d::vec3d< T >::y

Definition at line 70 of file math3d.h.

◆ z

template<typename T >
T math3d::vec3d< T >::z

Definition at line 70 of file math3d.h.


The documentation for this struct was generated from the following file:


trac_ik_lib
Author(s): Patrick Beeson, Barrett Ames
autogenerated on Thu May 22 2025 02:28:51