persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
Vec3< T > Struct Template Reference

#include <geometry.hpp>

Public Member Functions

 Vec3 ()
 Vec3 (T x, T y, T z)
Vec3< T > operator+ (const Vec3< T > &other) const
Vec3< T > operator- (const Vec3< T > &other) const
Vec3< T > operator* (T scalar) const
Vec3< T > & operator+= (const Vec3< T > &other)
Vec3< T > & operator= (const Vec3< T > &other)
bool operator== (const Vec3< T > &other) const =default
T dot (const Vec3< T > &other) const
Vec3< T > cross (const Vec3< T > &other) const

Public Attributes

T x
T y
T z

Detailed Description

template<typename T>
struct Vec3< T >

Definition at line 110 of file geometry.hpp.

Constructor & Destructor Documentation

◆ Vec3() [1/2]

template<typename T>
Vec3< T >::Vec3 ( )
inline

Definition at line 116 of file geometry.hpp.

Here is the caller graph for this function:

◆ Vec3() [2/2]

template<typename T>
Vec3< T >::Vec3 ( T x,
T y,
T z )
inline

Definition at line 119 of file geometry.hpp.

Member Function Documentation

◆ cross()

template<typename T>
Vec3< T > Vec3< T >::cross ( const Vec3< T > & other) const
inline

Definition at line 161 of file geometry.hpp.

Here is the call graph for this function:

◆ dot()

template<typename T>
T Vec3< T >::dot ( const Vec3< T > & other) const
inline

Definition at line 156 of file geometry.hpp.

Here is the call graph for this function:

◆ operator*()

template<typename T>
Vec3< T > Vec3< T >::operator* ( T scalar) const
inline

Definition at line 133 of file geometry.hpp.

Here is the call graph for this function:

◆ operator+()

template<typename T>
Vec3< T > Vec3< T >::operator+ ( const Vec3< T > & other) const
inline

Definition at line 123 of file geometry.hpp.

Here is the call graph for this function:

◆ operator+=()

template<typename T>
Vec3< T > & Vec3< T >::operator+= ( const Vec3< T > & other)
inline

Definition at line 138 of file geometry.hpp.

Here is the call graph for this function:

◆ operator-()

template<typename T>
Vec3< T > Vec3< T >::operator- ( const Vec3< T > & other) const
inline

Definition at line 128 of file geometry.hpp.

Here is the call graph for this function:

◆ operator=()

template<typename T>
Vec3< T > & Vec3< T >::operator= ( const Vec3< T > & other)
inline

Definition at line 146 of file geometry.hpp.

Here is the call graph for this function:

◆ operator==()

template<typename T>
bool Vec3< T >::operator== ( const Vec3< T > & other) const
default
Here is the call graph for this function:

Member Data Documentation

◆ x

template<typename T>
T Vec3< T >::x

Definition at line 112 of file geometry.hpp.

◆ y

template<typename T>
T Vec3< T >::y

Definition at line 113 of file geometry.hpp.

◆ z

template<typename T>
T Vec3< T >::z

Definition at line 114 of file geometry.hpp.


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