jaulib v1.4.1
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
vec2i.hpp File Reference
#include <cmath>
#include <cstdarg>
#include <cassert>
#include <string>
#include <algorithm>
#include <iostream>
#include <jau/float_math.hpp>
#include <jau/type_concepts.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<jau::req::packed_integral T>
using jau::math::Point2I = Vector2I<T>
 Point2I alias of Vector2I.
 
typedef Point2I< int > jau::math::Point2i
 
typedef Point2I< int32_t > jau::math::Point2i32
 
typedef Point2I< uint32_t > jau::math::Point2u32
 
typedef Vector2I< int > jau::math::Vec2i
 

Functions

template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::abs (const Vector2I< T > &lhs) noexcept
 
template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::max (const Vector2I< T > &lhs, const Vector2I< T > &rhs) noexcept
 
template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::min (const Vector2I< T > &lhs, const Vector2I< T > &rhs) noexcept
 
template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::operator* (const float s, const Vector2I< T > &rhs) noexcept
 
template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::operator* (const Vector2I< T > &lhs, const float s) noexcept
 
template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::operator+ (const Vector2I< T > &lhs, const Vector2I< T > &rhs) noexcept
 
template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::operator- (const Vector2I< T > &lhs) noexcept
 
template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::operator- (const Vector2I< T > &lhs, const Vector2I< T > &rhs) noexcept
 
template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::operator/ (const T s, const Vector2I< T > &rhs) noexcept
 
template<jau::req::packed_integral T>
constexpr Vector2I< T > jau::math::operator/ (const Vector2I< T > &lhs, const float s) noexcept
 
template<jau::req::packed_integral T>
std::ostream & jau::math::operator<< (std::ostream &out, const Vector2I< T > &v) noexcept