Core Library
A simple library for handling 3D scenes
Point Class Reference

The Point class represents a point (x,y,z) in 3D space. More...

#include <point.h>

Detailed Description

For the sake of simplicity, Point is implemented as a typedef of Qt's QVector3D.

Example of use:

#include "point.h"
#include "vector.h"
// create two points
Point p = Point(0.0, 0.0, 0.0);
Point q = Point(1.0, 0.0, 0.0);
// get coordinate values
float x = p.x();
float y = p.y();
float z = p.z();
// set coordinate values
p.setX(2.0);
p.setY(4.0);
p.setZ(2.0);
// common operations
Vector v = p - q; // point substraction (returns a Vector)
Point r = 0.4*p + 0.6*q; // barycentric combination