OGLplus (0.52.0) a C++ wrapper for OpenGL

angle.hpp File Reference

Angle utility class. More...

#include <oglplus/config/compiler.hpp>
#include <oglplus/math/constants.hpp>
#include <cassert>
#include <type_traits>

Go to the source code of this file.

Classes

class  oglplus::Angle< T >
 Class implementing planar angle-related functionality. More...
 

Namespaces

 oglplus
 All definitions of OGLplus are nested in the oglplus namespace.
 

Typedefs

typedef Angle< GLfloat > oglplus::Anglef
 Instantiation of Angle using GL floating-point as underlying type.
 

Functions

Angle< AngleValueType > oglplus::Radians (AngleValueType val_rad)
 Creates a new angle from a value in radians. More...
 
Angle< AngleValueType > oglplus::Degrees (AngleValueType val_deg)
 Creates a new angle from a value in degrees. More...
 
Angle< AngleValueType > oglplus::FullCircles (AngleValueType value)
 Creates a new angle from a value in "full circles" (i.e. 360 degrees) More...
 
Angle< AngleValueType > oglplus::RightAngles (AngleValueType value)
 Creates a new angle from a value in "right angles" (i.e. 90 deg.) More...
 
Angle< AngleValueType > oglplus::ArcSin (AngleValueType x)
 Creates a new angle using the arc sine function. More...
 
Angle< AngleValueType > oglplus::ArcCos (AngleValueType x)
 Creates a new angle using the arc cosine function. More...
 
Angle< AngleValueType > oglplus::ArcTan (AngleValueType x)
 Creates a new angle using the arc tangent function. More...
 
Angle< AngleValueType > oglplus::ArcTan (AngleValueType y, AngleValueType x)
 Creates a new angle using the arc tangent function with 2 parameters. More...
 
template<typename T >
oglplus::SineWave (T t)
 Returns a value on a sine wave at the specified point. More...
 
template<typename T >
oglplus::SineWave01 (T t)
 Returns a value on a sine wave transformed to range <0, 1> More...
 
template<typename T >
oglplus::CosineWave (T t)
 Returns a value on a cosine wave at the specified point. More...
 
template<typename T >
oglplus::CosineWave01 (T t)
 Returns a value on a cosine wave transformed to range <0, 1> More...
 

Detailed Description

Angle utility class.

Author
Matus Chochlik

Copyright 2010-2014 Matus Chochlik. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).