jaulib v1.3.6
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
vec2i.hpp File Reference
#include <cmath>
#include <cstdarg>
#include <cassert>
#include <limits>
#include <string>
#include <algorithm>
#include <iostream>
#include <jau/float_math.hpp>
Include dependency graph for vec2i.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jau::math::Vector2I< 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 Value_type, std::enable_if_t< std::numeric_limits< Value_type >::is_integer &&sizeof(Value_type)==alignof(Value_type), bool > = true>
using jau::math::Point2I = Vector2I<Value_type>
 Point2I alias of Vector2I.
 
typedef Point2I< int > jau::math::Point2i
 
typedef Vector2I< int > jau::math::Vec2i
 

Functions

template<typename T, std::enable_if_t< std::numeric_limits< T >::is_integer, bool > = true>
constexpr Vector2I< T > jau::math::max (const Vector2I< T > &lhs, const Vector2I< T > &rhs) noexcept
 
template<typename T, std::enable_if_t< std::numeric_limits< T >::is_integer, bool > = true>
constexpr Vector2I< T > jau::math::min (const Vector2I< T > &lhs, const Vector2I< T > &rhs) noexcept
 
template<typename T, std::enable_if_t< std::numeric_limits< T >::is_integer, bool > = true>
constexpr Vector2I< T > jau::math::operator* (const float s, const Vector2I< T > &rhs) noexcept
 
template<typename T, std::enable_if_t< std::numeric_limits< T >::is_integer, bool > = true>
constexpr Vector2I< T > jau::math::operator* (const Vector2I< T > &lhs, const float s) noexcept
 
template<typename T, std::enable_if_t< std::numeric_limits< T >::is_integer, bool > = true>
constexpr Vector2I< T > jau::math::operator+ (const Vector2I< T > &lhs, const Vector2I< T > &rhs) noexcept
 
template<typename T, std::enable_if_t< std::numeric_limits< T >::is_integer, bool > = true>
constexpr Vector2I< T > jau::math::operator- (const Vector2I< T > &lhs) noexcept
 
template<typename T, std::enable_if_t< std::numeric_limits< T >::is_integer, bool > = true>
constexpr Vector2I< T > jau::math::operator- (const Vector2I< T > &lhs, const Vector2I< T > &rhs) noexcept
 
template<typename T, std::enable_if_t< std::numeric_limits< T >::is_integer, bool > = true>
constexpr Vector2I< T > jau::math::operator/ (const Vector2I< T > &lhs, const float s) noexcept
 
template<typename T, std::enable_if_t< std::numeric_limits< T >::is_integer, bool > = true>
std::ostream & jau::math::operator<< (std::ostream &out, const Vector2I< T > &v) noexcept