Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Classes | Namespaces | Typedefs | Functions
vec2f.hpp File Reference
#include <cmath>
#include <cstdarg>
#include <cstdint>
#include <cassert>
#include <limits>
#include <string>
#include <iostream>
#include <jau/float_math.hpp>
Include dependency graph for vec2f.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jau::math::Ray2F< T, >
 Simple compound denoting a ray. More...
 
class  jau::math::Vector2F< Value_type, >
 2D vector using two value_type components. More...
 

Namespaces

namespace  jau
 __pack(...): Produces MSVC, clang and gcc compatible lead-in and -out macros.
 
namespace  jau::math
 

Typedefs

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
using jau::math::Point2F = Vector2F< T >
 Point2F alias of Vector2F. More...
 
typedef Point2F< float > jau::math::Point2f
 
typedef Ray2F< float > jau::math::Ray2f
 
typedef Vector2F< float > jau::math::Vec2f
 

Functions

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
constexpr Vector2F< T > jau::math::operator* (const T s, const Vector2F< T > &rhs) noexcept
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
constexpr Vector2F< T > jau::math::operator* (const Vector2F< T > &lhs, const T s) noexcept
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
constexpr Vector2F< T > jau::math::operator+ (const Vector2F< T > &lhs, const Vector2F< T > &rhs) noexcept
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
constexpr Vector2F< T > jau::math::operator- (const Vector2F< T > &lhs, const Vector2F< T > &rhs) noexcept
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
constexpr Vector2F< T > jau::math::operator/ (const Vector2F< T > &lhs, const T s) noexcept
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
std::ostream & jau::math::operator<< (std::ostream &out, const Ray2F< T > &v) noexcept
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
std::ostream & jau::math::operator<< (std::ostream &out, const Vector2F< T > &v) noexcept