Audacity 3.2.0
Classes | Namespaces | Typedefs | Functions
Point.h File Reference
#include <cmath>
#include <type_traits>
#include <numeric>
Include dependency graph for Point.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  graphics::PointType< DataType >
 A point in 2D space. More...
 

Namespaces

namespace  graphics
 

Typedefs

using graphics::Point = PointType< float >
 Alias for the point with float data type. More...
 

Functions

template<typename To , typename From >
PointType< To > graphics::point_cast (PointType< From > point)
 Casts a point to another point type. More...
 
template<typename DataType >
bool graphics::operator== (PointType< DataType > lhs, PointType< DataType > rhs) noexcept
 
template<typename DataType >
bool graphics::operator!= (PointType< DataType > lhs, PointType< DataType > rhs) noexcept
 
template<typename DataType >
PointType< DataType > graphics::operator+ (PointType< DataType > lhs, PointType< DataType > rhs) noexcept
 
template<typename DataType >
PointType< DataType > graphics::operator- (PointType< DataType > lhs, PointType< DataType > rhs) noexcept
 
template<typename DataType >
PointType< DataType > graphics::operator* (PointType< DataType > lhs, PointType< DataType > rhs) noexcept
 
template<typename DataType >
PointType< DataType > graphics::operator/ (PointType< DataType > lhs, PointType< DataType > rhs) noexcept
 
template<typename DataType , typename ScaleType >
PointType< DataType > graphics::operator* (PointType< DataType > lhs, ScaleType rhs) noexcept
 
template<typename DataType , typename ScaleType >
PointType< DataType > graphics::operator* (ScaleType lhs, PointType< DataType > rhs) noexcept
 
template<typename DataType , typename ScaleType >
PointType< DataType > graphics::operator/ (PointType< DataType > lhs, ScaleType rhs) noexcept
 
template<typename DataType >
auto graphics::DotProduct (PointType< DataType > lhs, PointType< DataType > rhs) noexcept
 Returns the dot (inner) product between the vectors, defined by points. More...
 
template<typename DataType >
auto graphics::Norm (PointType< DataType > lhs) noexcept
 Returns the length of a vector matching the point. More...
 
template<typename DataType >
auto graphics::Distance (PointType< DataType > lhs, PointType< DataType > rhs) noexcept
 Returns the distance between the two points. More...
 
template<typename DataType >
auto graphics::Normalized (PointType< DataType > pt) noexcept
 Returns a normalized vector in the direction of point. More...