Four-dimensional vector.  
 More...
#include <Geometry.hpp>
 | 
| 
  | Vec4 () | 
|   | Construct a new Vec4 object with uninitialized components. 
  | 
|   | 
|   | Vec4 (const T &xyz) | 
|   | Construct a new Vec4 object and initialize the x, y, and z components. The w component is set to unity.  More...
  | 
|   | 
|   | Vec4 (const T &x, const T &y, const T &z) | 
|   | Construct a new Vec4 object and initialize the x, y, and z components. The w component is set to unity.  
  More...
  | 
|   | 
|   | Vec4 (const T &x, const T &y, const T &z, const T &w) | 
|   | Construct a new Vec4 object and initialize the components.  More...
  | 
|   | 
|   | operator Vec3< T > () const | 
|   | Conversion to Vec3 object by dropping the w component.  More...
  | 
|   | 
 | 
| 
T  | x | 
|   | x Component. 
  | 
|   | 
| 
T  | y | 
|   | y Component. 
  | 
|   | 
| 
T  | z | 
|   | z Component. 
  | 
|   | 
| 
T  | w | 
|   | w Component. 
  | 
|   | 
template<typename T>
struct geometry::Vec4< T >
Four-dimensional vector. 
- Template Parameters
 - 
  
    | T | Underlying fundamental data type.  | 
  
   
 
◆ Vec4() [1/3]
Construct a new Vec4 object and initialize the x, y, and z components. The w component is set to unity. 
- Parameters
 - 
  
    | xyz | Value to initialize the x, y, and z component.  | 
  
   
 
 
◆ Vec4() [2/3]
Construct a new Vec4 object and initialize the x, y, and z components. The w component is set to unity. 
 
- Parameters
 - 
  
    | x | Value to initialize the x component.  | 
    | y | Value to initialize the y component.  | 
    | z | Value to initialize the z component.  | 
  
   
 
 
◆ Vec4() [3/3]
Construct a new Vec4 object and initialize the components. 
- Parameters
 - 
  
    | x | Value to initialize the x component.  | 
    | y | Value to initialize the y component.  | 
    | z | Value to initialize the z component.  | 
    | w | Value to initialize the w component.  | 
  
   
 
 
◆ operator Vec3< T >()
Conversion to Vec3 object by dropping the w component. 
- Returns
 - Vec3<T> Reduced Vec3 object with w component dropped. 
 
 
 
The documentation for this struct was generated from the following file:
- /home/runner/work/SpinParser/SpinParser/src/lib/Geometry.hpp