Tracer
Public Member Functions | Public Attributes | List of all members
vec3 Class Reference

Public Member Functions

__host__ __device__ vec3 (float a, float b, float c)
 
__host__ __device__ vec3 operator+ (const vec3 &v) const
 
__host__ __device__ vec3 operator- (const vec3 &v) const
 
__host__ __device__ vec3 operator* (const float &s) const
 
__host__ __device__ vec3 operator* (const vec3 &v) const
 
__host__ __device__ vec3 operator/ (const float &s) const
 
__host__ __device__ vec3 operator/ (const vec3 &v) const
 
__host__ __device__ vec3 operator- () const
 
__host__ __device__ float dot (const vec3 &v) const
 
__host__ __device__ vec3 cross (const vec3 &v) const
 
__host__ __device__ float magnitude () const
 
__host__ __device__ vec3 normalize () const
 

Public Attributes

float x
 
float y
 
float z
 

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