Public Types | Public Member Functions | Public Attributes | List of all members
Vector3 Struct Reference

Public Types

enum  Axis { AXIS_X, AXIS_Y, AXIS_Z }
 

Public Member Functions

_FORCE_INLINE_ const real_t & operator[] (int p_axis) const
 
_FORCE_INLINE_ real_t & operator[] (int p_axis)
 
void set_axis (int p_axis, real_t p_value)
 
real_t get_axis (int p_axis) const
 
int min_axis () const
 
int max_axis () const
 
_FORCE_INLINE_ real_t length () const
 
_FORCE_INLINE_ real_t length_squared () const
 
_FORCE_INLINE_ void normalize ()
 
_FORCE_INLINE_ Vector3 normalized () const
 
_FORCE_INLINE_ Vector3 inverse () const
 
_FORCE_INLINE_ void zero ()
 
void snap (float p_val)
 
Vector3 snapped (float p_val) const
 
void rotate (const Vector3 &p_axis, float p_phi)
 
Vector3 rotated (const Vector3 &p_axis, float p_phi) const
 
_FORCE_INLINE_ Vector3 linear_interpolate (const Vector3 &p_b, float p_t) const
 
Vector3 cubic_interpolate (const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, float p_t) const
 
Vector3 cubic_interpolaten (const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, float p_t) const
 
_FORCE_INLINE_ Vector3 cross (const Vector3 &p_b) const
 
_FORCE_INLINE_ real_t dot (const Vector3 &p_b) const
 
_FORCE_INLINE_ Vector3 abs () const
 
_FORCE_INLINE_ Vector3 floor () const
 
_FORCE_INLINE_ Vector3 ceil () const
 
_FORCE_INLINE_ real_t distance_to (const Vector3 &p_b) const
 
_FORCE_INLINE_ real_t distance_squared_to (const Vector3 &p_b) const
 
_FORCE_INLINE_ Vector3 slide (const Vector3 &p_vec) const
 
_FORCE_INLINE_ Vector3 reflect (const Vector3 &p_vec) const
 
_FORCE_INLINE_ Vector3operator+= (const Vector3 &p_v)
 
_FORCE_INLINE_ Vector3 operator+ (const Vector3 &p_v) const
 
_FORCE_INLINE_ Vector3operator-= (const Vector3 &p_v)
 
_FORCE_INLINE_ Vector3 operator- (const Vector3 &p_v) const
 
_FORCE_INLINE_ Vector3operator*= (const Vector3 &p_v)
 
_FORCE_INLINE_ Vector3 operator* (const Vector3 &p_v) const
 
_FORCE_INLINE_ Vector3operator/= (const Vector3 &p_v)
 
_FORCE_INLINE_ Vector3 operator/ (const Vector3 &p_v) const
 
_FORCE_INLINE_ Vector3operator*= (real_t p_scalar)
 
_FORCE_INLINE_ Vector3 operator* (real_t p_scalar) const
 
_FORCE_INLINE_ Vector3operator/= (real_t p_scalar)
 
_FORCE_INLINE_ Vector3 operator/ (real_t p_scalar) const
 
_FORCE_INLINE_ Vector3 operator- () const
 
_FORCE_INLINE_ bool operator== (const Vector3 &p_v) const
 
_FORCE_INLINE_ bool operator!= (const Vector3 &p_v) const
 
_FORCE_INLINE_ bool operator< (const Vector3 &p_v) const
 
_FORCE_INLINE_ bool operator<= (const Vector3 &p_v) const
 
 operator String () const
 
_FORCE_INLINE_ Vector3 (real_t p_x, real_t p_y, real_t p_z)
 

Public Attributes

union {
   struct {
      real_t   x
 
      real_t   y
 
      real_t   z
 
   } 
 
   real_t   coord [3]
 
}; 
 

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