Geno3D
A simple 3D visualisation library, using C++/SFML.
 All Classes Functions Variables
Public Member Functions | List of all members
Geno3D::OrthCamera Class Reference

#include <OrthCamera.hpp>

Inheritance diagram for Geno3D::OrthCamera:
Geno3D::Camera Geno3D::Transformable

Public Member Functions

Eigen::Matrix3Xf project (const Eigen::Matrix3Xf &points) override
 
- Public Member Functions inherited from Geno3D::Camera
void translate (float x, float y, float z) override
 
void scale (float m) override
 
void rotate (float x, float y, float z) override
 
void transform (const Transformation &t) override
 
void setPosition (float x, float y, float z)
 
Eigen::Vector3f getPosition ()
 
void setOrientation (float x, float y, float z)
 
Eigen::Vector3f getOrientation ()
 
void setSurface (float x, float y, float z)
 
Eigen::Vector3f getSurface ()
 

Additional Inherited Members

- Protected Attributes inherited from Geno3D::Camera
Eigen::Vector3f position
 3D Position of the camera
 
Eigen::Vector3f orientation
 3D Orientation of the camera
 
Eigen::Vector3f displaySurface
 Configuration of the camera's display surface.
 

Detailed Description

An orthographic camera. This class uses an orthographic projection algorithm.

Member Function Documentation

Eigen::Matrix3Xf Geno3D::OrthCamera::project ( const Eigen::Matrix3Xf &  points)
overridevirtual

Project a set of points in 3D space onto the 2D camera. This should project the points onto the camera's display surface, using an orthographic projection algorithm.

Parameters
pointsa 3-row matrix holding points in 3D space
See Also
Camera
PerspCamera

Implements Geno3D::Camera.

References Geno3D::Camera::displaySurface, Geno3D::Camera::orientation, and Geno3D::Camera::position.


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