MinGfx Toolkit  1.0
A minimal library for writing cross-platform (Windows, OSX, linux) graphics programs.
Classes | Namespaces | Functions
vector3.h File Reference
#include <iostream>
#include "point3.h"

Go to the source code of this file.

Classes

class  mingfx::Vector3
 A 3D Vector with floating point coordinates, used for storing normals and all sorts of other 3D graphics operations. More...
 

Namespaces

 mingfx
 Namespace for the MinGfx Toolkit.
 

Functions

Vector3 mingfx::operator/ (const Vector3 &v, const float s)
 Divide the vector by the scalar s. More...
 
Vector3 mingfx::operator* (const float s, const Vector3 &v)
 Multiply the vector by the scalar s. More...
 
Vector3 mingfx::operator* (const Vector3 &v, const float s)
 Multiply the vector by the scalar s. More...
 
Vector3 mingfx::operator- (const Vector3 &v)
 Negate the vector. More...
 
Point3 mingfx::operator+ (const Vector3 &v, const Point3 &p)
 Adds a vector and a point, returns a point. More...
 
Point3 mingfx::operator+ (const Point3 &p, const Vector3 &v)
 Adds a point and a vector, returns a point. More...
 
Vector3 mingfx::operator+ (const Vector3 &v1, const Vector3 &v2)
 Adds a vector and a vector, returns a vector. More...
 
Point3 mingfx::operator- (const Point3 &p, const Vector3 &v)
 Subtracts a vector from a point, returns a point. More...
 
Vector3 mingfx::operator- (const Vector3 &v1, const Vector3 &v2)
 Subtracts v2 from v1, returns a vector. More...
 
Vector3 mingfx::operator- (const Point3 &p1, const Point3 &p2)
 Returns the vector spanning p1 and p2. More...
 
std::ostream & mingfx::operator<< (std::ostream &os, const Vector3 &v)
 
std::istream & mingfx::operator>> (std::istream &is, Vector3 &v)