Open 3D Engine AtomTressFX Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AMD::Vector3 Class Reference

Public Member Functions

 Vector3 (float x, float y, float z)
 
 Vector3 (float *xyz)
 
 Vector3 (const Vector3 &other)
 
 Vector3 (const Vector3 &begin, const Vector3 &end)
 
Vector3Normalize ()
 
Vector3 NormalizeOther () const
 
Vector3 Cross (const Vector3 &v) const
 
float Dot (const Vector3 &v) const
 
float Length () const
 
float LengthSqr () const
 
void Set (float xIn, float yIn, float zIn)
 
const float & operator[] (unsigned int i) const
 
float & operator[] (unsigned int i)
 
Vector3operator= (const Vector3 &other)
 
Vector3operator= (float val)
 
Vector3operator= (float *xyz)
 
bool operator!= (float val) const
 
bool operator< (float val) const
 
bool operator> (float val) const
 
bool operator== (float val) const
 
bool operator== (const Vector3 &other) const
 
bool operator!= (const Vector3 &other) const
 
Vector3operator-= (const Vector3 &other)
 
Vector3operator+= (const Vector3 &other)
 
Vector3operator*= (float val)
 
Vector3 operator- (const Vector3 &other) const
 
Vector3 operator+ (const Vector3 &other) const
 
Vector3 operator/ (float val) const
 
Vector3 operator* (float val) const
 
float operator* (const Vector3 &other) const
 

Public Attributes

union {
   struct {
      float   m [4]
 
   } 
 
   struct {
      float   x
 
      float   y
 
      float   z
 
      float   w
 
   } 
 
}; 
 

Friends

Vector3 operator* (float val, const Vector3 &other)
 
Vector3 operator- (const Vector3 &other)
 

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