Public Member Functions | Public Attributes | List of all members
mcl_3dl::Vec3 Class Reference

#include <vec3.h>

Public Member Functions

Vec3 cross (const Vec3 &q) const
 
float dot (const Vec3 &q) const
 
float norm () const
 
Vec3 normalized () const
 
bool operator!= (const Vec3 &q) const
 
Vec3 operator* (const float &s) const
 
Vec3operator*= (const float &s)
 
Vec3 operator+ (const Vec3 &q) const
 
Vec3operator+= (const Vec3 &q)
 
Vec3 operator- (const Vec3 &q) const
 
Vec3 operator- () const
 
Vec3operator-= (const Vec3 &q)
 
Vec3 operator/ (const float &s) const
 
Vec3operator/= (const float &s)
 
bool operator== (const Vec3 &q) const
 
float & operator[] (const size_t i)
 
float operator[] (const size_t i) const
 
Vec3 times (const Vec3 &q) const
 
 Vec3 (const float x, const float y, const float z)
 
 Vec3 ()
 

Public Attributes

float x_
 
float y_
 
float z_
 

Detailed Description

Definition at line 35 of file vec3.h.

Constructor & Destructor Documentation

mcl_3dl::Vec3::Vec3 ( const float  x,
const float  y,
const float  z 
)
inline

Definition at line 41 of file vec3.h.

mcl_3dl::Vec3::Vec3 ( )
inline

Definition at line 47 of file vec3.h.

Member Function Documentation

Vec3 mcl_3dl::Vec3::cross ( const Vec3 q) const
inline

Definition at line 139 of file vec3.h.

float mcl_3dl::Vec3::dot ( const Vec3 q) const
inline

Definition at line 135 of file vec3.h.

float mcl_3dl::Vec3::norm ( ) const
inline

Definition at line 149 of file vec3.h.

Vec3 mcl_3dl::Vec3::normalized ( ) const
inline

Definition at line 153 of file vec3.h.

bool mcl_3dl::Vec3::operator!= ( const Vec3 q) const
inline

Definition at line 91 of file vec3.h.

Vec3 mcl_3dl::Vec3::operator* ( const float &  s) const
inline

Definition at line 107 of file vec3.h.

Vec3& mcl_3dl::Vec3::operator*= ( const float &  s)
inline

Definition at line 125 of file vec3.h.

Vec3 mcl_3dl::Vec3::operator+ ( const Vec3 q) const
inline

Definition at line 95 of file vec3.h.

Vec3& mcl_3dl::Vec3::operator+= ( const Vec3 q)
inline

Definition at line 115 of file vec3.h.

Vec3 mcl_3dl::Vec3::operator- ( const Vec3 q) const
inline

Definition at line 99 of file vec3.h.

Vec3 mcl_3dl::Vec3::operator- ( ) const
inline

Definition at line 103 of file vec3.h.

Vec3& mcl_3dl::Vec3::operator-= ( const Vec3 q)
inline

Definition at line 120 of file vec3.h.

Vec3 mcl_3dl::Vec3::operator/ ( const float &  s) const
inline

Definition at line 111 of file vec3.h.

Vec3& mcl_3dl::Vec3::operator/= ( const float &  s)
inline

Definition at line 130 of file vec3.h.

bool mcl_3dl::Vec3::operator== ( const Vec3 q) const
inline

Definition at line 87 of file vec3.h.

float& mcl_3dl::Vec3::operator[] ( const size_t  i)
inline

Definition at line 51 of file vec3.h.

float mcl_3dl::Vec3::operator[] ( const size_t  i) const
inline

Definition at line 69 of file vec3.h.

Vec3 mcl_3dl::Vec3::times ( const Vec3 q) const
inline

Definition at line 145 of file vec3.h.

Member Data Documentation

float mcl_3dl::Vec3::x_

Definition at line 38 of file vec3.h.

float mcl_3dl::Vec3::y_

Definition at line 39 of file vec3.h.

float mcl_3dl::Vec3::z_

Definition at line 40 of file vec3.h.


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


mcl_3dl
Author(s): Atsushi Watanabe
autogenerated on Mon Jul 8 2019 03:32:36