INFO804 Introduction à l'informatique graphique
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions
PointVector.h File Reference
#include <cassert>
#include <cmath>
#include <array>

Go to the source code of this file.

Classes

struct  rt::PointVector< T, N >
 

Namespaces

namespace  rt
 Namespace RayTracer.
 

Typedefs

typedef float rt::Real
 the type for representing a real number.
 
typedef PointVector< Real, 2 > rt::Vector2
 
typedef PointVector< Real, 2 > rt::Point2
 
typedef PointVector< Real, 3 > rt::Vector3
 The type for representing a 3d point.
 
typedef PointVector< Real, 3 > rt::Point3
 The type for representing a 3d vector;.
 
typedef PointVector< Real, 4 > rt::Vector4
 
typedef PointVector< Real, 4 > rt::Point4
 

Functions

template<typename T , std::size_t N>
std::ostream & rt::operator<< (std::ostream &out, const PointVector< T, N > &PV)
 
template<typename T , std::size_t N>
PointVector< T, N > rt::operator* (T val, const PointVector< T, N > &PV)
 
template<typename T , std::size_t N>
PointVector< T, N > rt::operator* (const PointVector< T, N > &PV, T val)
 
template<typename T , std::size_t N>
PointVector< T, N > rt::operator/ (T val, const PointVector< T, N > &PV)
 
template<typename T , std::size_t N>
PointVector< T, N > rt::operator/ (const PointVector< T, N > &PV, T val)
 
template<typename T , std::size_t N>
rt::distance2 (const PointVector< T, N > &p1, const PointVector< T, N > &p2)
 
template<typename T , std::size_t N>
rt::distance (const PointVector< T, N > &p1, const PointVector< T, N > &p2)
 

Detailed Description

Author
JOL

Definition in file PointVector.h.

Macro Definition Documentation

◆ _POINT_VECTOR_H_

#define _POINT_VECTOR_H_

Definition at line 7 of file PointVector.h.