GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem Namespace Reference

Namespaces

namespace  ascii
namespace  base16
namespace  base64
namespace  cli
namespace  deflate
namespace  json
namespace  meta
namespace  numbers
namespace  obj
namespace  randomness
namespace  time_literals
namespace  unicode
namespace  xml
namespace  application
namespace  audio
namespace  pmr
namespace  gltf
namespace  uri
namespace  events
namespace  execution
namespace  graphics
namespace  resource
namespace  imgui
namespace  networking
namespace  physics

Classes

struct  EqualTo
struct  NotEqualTo
struct  LessThan
struct  LessThanOrEqualTo
struct  GreaterThan
struct  GreaterThanOrEqualTo
struct  Add
struct  Subtract
struct  Multiply
struct  Divide
struct  Modulo
struct  Negate
class  TransparentHash
class  TransparentEqual
class  PDController
 Proportional-derivative feedback loop for adjusting a control variable towards a desired setpoint based on a measured process variable in the form of a discrete-time input signal. More...
class  PIController
 Proportional-integral feedback loop for adjusting a control variable towards a desired setpoint based on a measured process variable in the form of a discrete-time input signal. More...
class  PIDController
 Proportional-integral-derivative feedback loop for adjusting a control variable towards a desired setpoint based on a measured process variable in the form of a discrete-time input signal. More...
class  Allocation
struct  BadAnyAccess
 Exception type that is thrown on an attempt to erroneously access the incorrect type of an Any wrapper when using a safe access function such as Any::get(). More...
class  AnyBase
 Generic type-erased semi-regular value wrapper. More...
class  ArenaAllocator
class  ArenaResource
class  Arena
class  Arena< 0, InplaceAlignment >
struct  Array
struct  Array< T, 0 >
class  ArrayList
class  BitArray
class  BitBufferBase
class  Buffer
class  Color
 Floating-point linear RGBA color in the Rec. More...
class  ConstantString
struct  ConvexPolytopeEdge
 Edge of a convex polytope. More...
struct  ConvexPolytopeEdge< 2, Scalar >
struct  ConvexPolytopeEdge< 3, Scalar >
struct  ConvexPolytopeFace
 Face on a convex polytope. More...
struct  ConvexPolytopeFace< 2, Scalar >
struct  ConvexPolytopeFace< 3, Scalar >
class  ConvexPolytope
 Convex polytope. More...
class  CStringViewBase
class  DoubleEndedQueue
class  FunctionView
class  FunctionView< Ret(Args...)>
class  HashMap
class  HashSet
class  Indirect
class  InplaceArrayList
class  InplaceBuffer
class  InplaceDoubleEndedQueue
class  InplaceRingBuffer
class  LinearBoundingVolumeHierarchy
 Binary tree-based space subdivision container, Z-ordered using morton codes, optimized for intersection queries between axis-aligned boxes. More...
class  LinearBuffer
class  LooseOrthtree
 Orthtree-based space subdivision structure, optimized for intersection queries between axis-aligned boxes. More...
class  LooseOrthtreeID
 Opaque handle to an element in a LooseOrthtree. More...
class  MPMCQueue
struct  Nullopt
 Unit type for representing an empty Optional. More...
struct  BadOptionalAccess
 Exception type that is thrown on an attempt to erroneously access an empty Optional when using a safe access function such as Optional::value(). More...
class  Optional
 Optional value type that holds either a value or no value. More...
class  OrderedMap
class  OrderedMultimap
struct  Pair
struct  IndexAllocation
struct  RangeAllocation
class  RangeAllocator
class  Reader
class  SpanReader
class  Registry
 Tightly packed set of elements with stable IDs, supporting fast iteration as well as amortized O(1) insertion, removal and lookup. More...
class  RegistryElementIDBase
 Base class for an opaque handle to a specific element in a Registry. More...
struct  RegistryElementID
 Opaque handle to a specific element in a Registry. More...
class  RingBuffer
class  WeakPointer
class  SharedPointer
class  SharedPointer< T[]>
class  WeakPointer< T[]>
class  SmallArrayList
class  SmallBuffer
class  Span
class  SPSCQueue
class  SPSCSlidingWindowQueue
struct  SquareAllocation
class  SquareAllocator
class  StridedSpan
struct  StringID
class  StringPoolBase
class  Subrange
class  Table
class  Table< Tuple< Ts... >, Allocator >
class  TriangleMesh
 Triangle mesh. More...
class  Tuple
struct  Ignore
class  UniqueHandle
 Generic nullable RAII resource handle with exclusive ownership of a resource that is automatically destroyed on handle destruction. More...
class  DefaultDelete
 Default deleter for UniquePointer<T>. More...
class  DefaultDelete< T[]>
 Default deleter for UniquePointer<T[]>. More...
class  UniquePointer
 Nullable RAII data pointer with exclusive ownership of an object that is automatically destroyed on pointer destruction. More...
class  UniquePointer< T[], Deleter >
 Nullable RAII data pointer with exclusive ownership of an array that is automatically destroyed on pointer destruction. More...
class  Variant
 Tagged union value type that holds a value of one of the given types. More...
struct  Monostate
 Unit type for representing an empty alternative in Variant. More...
struct  BadVariantAccess
 Exception type that is thrown on an attempt to erroneously access an inactive alternative of a Variant when using a safe access function such as Variant::get(). More...
struct  Overloaded
 Visitor type for combining callable objects, such as lambdas, into an overload set. More...
class  Writer
class  SpanWriter
class  SizeCountingWriter
struct  DebugFormatter
struct  DebugFormatter< byte >
struct  DebugFormatter< StringView >
struct  DebugFormatter< grem::CStringView >
struct  DebugFormatter< grem::String >
struct  DebugFormatter< grem::ConstantString< char, Length > >
struct  DebugFormatter< char >
struct  DebugFormatter< const char * >
struct  DebugFormatter< char * >
struct  DebugFormatter< char[N]>
struct  DebugFormatter< T >
struct  DebugRangeFormatter
struct  DebugFormatter< Range >
struct  DebugFormatter< Tuple< Ts... > >
struct  DebugFormatter< Pair< T1, T2 > >
struct  DebugFormatter< Optional< T > >
struct  DebugFormatter< T * >
struct  DebugFormatter< UniquePointer< T > >
struct  DebugFormatter< UniquePointer< T[]> >
struct  DebugFormatter< SharedPointer< T > >
struct  DebugFormatter< SharedPointer< T[]> >
struct  DebugFormatter< WeakPointer< T > >
struct  DebugFormatter< WeakPointer< T[]> >
struct  DebugFormatter< Variant< Ts... > >
struct  DebugFormatter< Enum >
struct  DebugFormatter< Aggregate >
struct  DebugFormatter< VariantDerived >
struct  DebugFormatter< VariantDerivedAggregate >
class  DebugFormatStringBase
class  Error
 Base exception type for runtime errors. More...
struct  Offset
 Offset in a data region. More...
struct  Extent
 Size of a data region. More...
struct  Offset< 3 >
struct  Extent< 3 >
struct  Offset< 2 >
struct  Extent< 2 >
struct  Region
 Rectangular region of data. More...
class  Adler32
class  CRC32
struct  FormatError
class  FormatOutput
struct  Formatter
class  FormatArgument
struct  RuntimeFormat
class  FormatStringBase
struct  RangeFormatter
struct  Formatter< grem::StringView >
struct  Formatter< grem::CStringView >
struct  Formatter< grem::String >
struct  Formatter< grem::ConstantString< char, Length > >
struct  Formatter< char >
struct  Formatter< const char * >
struct  Formatter< char * >
struct  Formatter< char[N]>
struct  Formatter< bool >
struct  Formatter< Integer >
struct  Formatter< Float >
struct  Formatter< const void * >
struct  Formatter< void * >
struct  Formatter< std::nullptr_t >
struct  Formatter< grem::bool16_t >
struct  Formatter< grem::bool32_t >
struct  Formatter< grem::bool64_t >
struct  Formatter< grem::float16_t >
struct  Formatter< grem::i8norm >
struct  Formatter< grem::u8norm >
struct  Formatter< grem::i16norm >
struct  Formatter< grem::u16norm >
struct  Formatter< Range >
struct  Formatter< grem::Tuple< Ts... > >
struct  Formatter< grem::Pair< T1, T2 > >
struct  Limits
struct  Limits< T >
struct  ValueRepresentation
struct  Limits< bool8_t >
class  bool16_t
struct  Limits< bool16_t >
class  bool32_t
struct  Limits< bool32_t >
class  bool64_t
struct  Limits< bool64_t >
struct  float16_t
struct  Limits< float16_t >
struct  Limits< detail::NormalizedInteger< T > >
struct  Ray
 Generic ray with an origin and direction in N-dimensional space. More...
struct  RayMiss
 Result of a raycast miss. More...
struct  RayHit
 Result of a raycast hit. More...
struct  RayHitInterior
 Result of an interor raycast hit. More...
struct  RaycastResult
 Result of a raycast. More...
struct  Box
 Generic axis-aligned box shape with minimum and maximum extents in N-dimensional space. More...
struct  Rectangle
 Flat 2D axis-aligned rectangle shape with a position and size. More...
struct  Square
 Flat 2D axis-aligned square shape with a position and width. More...
struct  Cube
 3D axis-aligned cube shape with a position and width. More...
struct  Triangle
 Generic triangle shape in N-dimensional space. More...
struct  LineSegment
 Generic line segment between two points in N-dimensional space. More...
struct  Ellipsoid
 Generic ellipsoid shape with a center and axis-aligned radii in N-dimensional space. More...
struct  Ellipse
 Flat 2D ellipse shape with a center and axis-aligned radii. More...
struct  Sphere
 Generic sphere shape with a center and radius in N-dimensional space. More...
struct  Circle
 Flat 2D circle shape with a center and radius. More...
struct  Capsule
 Generic capsule shape with a center line segment and radius in N-dimensional space. More...
struct  Frustum
 Truncated pyramid shape in 3D space. More...
struct  vec
struct  vec< 1, T >
struct  vec< 2, T >
struct  vec< 3, T >
struct  vec< 4, T >
struct  iA2B10G10R10vec4norm
struct  uA2B10G10R10vec4norm
struct  mat
struct  qua
struct  DecomposeMagnitudeDirectionResult
struct  DecomposeMagnitudeAngleResult
struct  DecomposeTranslationRotationScaleResult
 Result of the decomposeTranslationRotationScale() function. More...
struct  DecomposeTranslationRotationScaleResult< 2, T >
struct  DecomposeTranslationRotationScaleResult< 3, T >
struct  Formatter< grem::vec< N, T > >
struct  Formatter< V >
struct  Formatter< grem::mat< C, R, T > >
struct  Formatter< grem::qua< T > >
class  ProfileFormats
 Set of formats to save profile data in. More...
class  ExponentialMovingAverage
 Exponential moving average of a discrete-time input signal. More...
class  SlidingWindow
 Sliding window of a discrete-time input signal. More...
struct  ISO8601FormattingOptions
struct  UTCTimestamp
class  File
 Base interface for a file in a Filesystem. More...
class  InputFile
 Base interface for a readable File in a Filesystem. More...
class  InputFileHandle
 Generic boxed unique handle to a readable file in any filesystem. More...
class  OutputFile
 Base interface for a writable file in a Filesystem. More...
class  OutputFileHandle
 Generic boxed unique handle to a writable file in any filesystem. More...
class  Filesystem
 Base interface for a filesystem. More...
class  NativeFilesystem
 Wrapper over the native host filesystem. More...
class  NativeInputFile
 Unique handle to a readable file in the native Filesystem. More...
class  NativeOutputFile
 Unique handle to a writable file in the native Filesystem. More...
class  SharedLibrary
 Library of dynamically loaded symbols. More...
class  Atomic
class  AtomicFlag
class  AtomicRef
class  Mutex
class  RecursiveMutex
class  SharedMutex
class  TimedMutex
class  RecursiveTimedMutex
class  SharedTimedMutex
struct  DeferLock
struct  TryToLock
struct  AdoptLock
class  ScopedLock
class  ScopedLock< MutexType >
class  UniqueLock
class  SharedLock
class  ThreadID
class  Thread
struct  Formatter< grem::DurationBase< Rep, Period > >
struct  Formatter< grem::networking::IPv4Address >
struct  Formatter< grem::networking::IPv6Address >
struct  Formatter< grem::networking::IPv4Endpoint >
struct  Formatter< grem::networking::IPv6Endpoint >
struct  Formatter< grem::networking::Endpoint >
struct  Formatter< grem::physics::Quantity< 1, UnitT > >
struct  Formatter< grem::physics::Quantity< 2, UnitT > >
struct  Formatter< grem::physics::Quantity< 3, UnitT > >
struct  Formatter< grem::physics::TensorQuantity< 2, UnitT > >
struct  Formatter< grem::physics::TensorQuantity< 3, UnitT > >
struct  Formatter< grem::physics::Direction< N > >
struct  Formatter< grem::physics::OrthonormalBasis< N > >
struct  Formatter< grem::physics::Orientation< 2 > >
struct  Formatter< grem::physics::Orientation< 3 > >
struct  Formatter< grem::physics::LocalInertiaOrientation< 2 > >
struct  Formatter< grem::physics::LocalInertiaOrientation< 3 > >

Concepts

concept  same_as
concept  derived_from
concept  template_specialization_of
concept  derived_from_template_specialization_of
concept  convertible_to
concept  common_reference_with
concept  common_with
concept  integral
concept  strict_integral
concept  signed_integral
concept  strict_signed_integral
concept  unsigned_integral
concept  strict_unsigned_integral
concept  floating_point
concept  arithmetic
concept  strict_arithmetic
concept  enumeration
concept  scoped_enumeration
concept  aggregate
concept  scalar
concept  pointer
concept  standard_layout
concept  assignable_from
concept  swappable
concept  swappable_with
concept  destructible
concept  constructible_from
concept  default_initializable
concept  move_constructible
concept  copy_constructible
concept  equality_comparable
concept  three_way_comparable
concept  movable
concept  nothrow_movable
concept  copyable
concept  nothrow_copyable
concept  semiregular
concept  regular
concept  trivially_destructible
concept  trivially_copyable
concept  range
concept  input_range
concept  output_range
concept  forward_range
concept  bidirectional_range
concept  random_access_range
concept  contiguous_range
concept  common_range
concept  sized_range
concept  formattable
concept  raycastable_shape
 Concept that checks if a given type is a raycastable shape type.
concept  axis_aligned_box_shape
 Concept that checks if a given type is an axis-aligned box shape type.
concept  axis_aligned_ellipsoid_shape
 Concept that checks if a given type is an axis-aligned ellipsoid shape type.
concept  spherical_shape
 Concept that checks if a given type is a spherical shape type.

Typedefs

template<typename T>
using iterator_t = decltype(std::begin(std::declval<T&>()))
template<typename T>
using const_iterator_t = decltype(std::cbegin(std::declval<T&>()))
template<typename T>
using sentinel_t = decltype(std::end(std::declval<T&>()))
template<typename T>
using const_sentinel_t = decltype(std::cend(std::declval<T&>()))
template<typename T>
using range_value_t = iter_value_t<iterator_t<T>>
template<typename T>
using range_reference_t = iter_reference_t<iterator_t<T>>
template<typename T>
using range_difference_t = iter_difference_t<iterator_t<T>>
template<typename T>
using range_rvalue_reference_t = iter_rvalue_reference_t<iterator_t<T>>
template<typename T>
using range_common_reference_t = iter_common_reference_t<iterator_t<T>>
template<typename T>
using range_size_t = decltype(std::size(std::declval<T&>()))
using Any = AnyBase<void>
 Type-erased semi-regular value wrapper.
using BitBuffer = BitBufferBase<>
using ConvexPolytopeVertexIndex = uint8_t
 Index of a vertex in a convex polytope.
using ConvexPolytopeEdgeIndex = uint8_t
 Index of an edge in a convex polytope.
using ConvexPolytopeFaceIndex = uint8_t
 Index of a face in a convex polytope.
template<size_t N, typename Scalar>
using ConvexPolytopeVertex = vec<N, Scalar>
 Vertex of a convex polytope.
using CStringView = CStringViewBase<char, std::char_traits<char>>
using UTF8CStringView = CStringViewBase<char8_t, std::char_traits<char8_t>>
using UTF16CStringView = CStringViewBase<char16_t, std::char_traits<char16_t>>
using UTF32CStringView = CStringViewBase<char32_t, std::char_traits<char32_t>>
using WCStringView = CStringViewBase<wchar_t, std::char_traits<wchar_t>>
template<typename T, typename Allocator = std::allocator<T>>
using DoublyLinkedList = std::list<T, Allocator>
template<typename Signature>
using Function = std::function<Signature>
template<typename Scalar, typename T>
using BoundingVolumeHierarchy2D = LinearBoundingVolumeHierarchy<2, Scalar, T>
 Binary tree-based space subdivision container, optimized for intersection queries between 2D axis-aligned boxes.
template<typename Scalar, typename T>
using BoundingVolumeHierarchy3D = LinearBoundingVolumeHierarchy<3, Scalar, T>
 Binary tree-based space subdivision container, optimized for intersection queries between 3D axis-aligned boxes.
template<std::size_t Index, typename B>
using linear_buffer_alternative_t = typename linear_buffer_alternative<Index, B>::type
using LooseQuadtreeID = LooseOrthtreeID
 Opaque handle to an element in a LooseQuadtree.
template<typename Scalar, typename T>
using LooseQuadtree = LooseOrthtree<2, Scalar, T>
 Quadtree-based space subdivision container, optimized for intersection queries between 2D axis-aligned boxes.
using LooseOctreeID = LooseOrthtreeID
 Opaque handle to an element in a LooseOctree.
template<typename Scalar, typename T>
using LooseOctree = LooseOrthtree<3, Scalar, T>
 Octree-based space subdivision container, optimized for intersection queries between 3D axis-aligned boxes.
template<typename T, typename Container = ArrayList<T, std::allocator<T>>, typename Compare = std::less<typename Container::value_type>>
using PriorityQueue = std::priority_queue<T, Container, Compare>
template<typename T, typename Allocator = std::allocator<T>>
using SinglyLinkedList = std::forward_list<T, Allocator>
template<typename CharT, typename Traits = std::char_traits<CharT>, typename Allocator = std::allocator<CharT>>
using StringBase = std::basic_string<CharT, Traits, Allocator>
using String = StringBase<char, std::char_traits<char>, std::allocator<char>>
using UTF8String = StringBase<char8_t, std::char_traits<char8_t>, std::allocator<char8_t>>
using UTF16String = StringBase<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>
using UTF32String = StringBase<char32_t, std::char_traits<char32_t>, std::allocator<char32_t>>
using WString = StringBase<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>
using StringPool = StringPoolBase<char>
template<typename CharT, typename Traits = std::char_traits<CharT>>
using StringViewBase = std::basic_string_view<CharT, Traits>
using StringView = StringViewBase<char, std::char_traits<char>>
using UTF8StringView = StringViewBase<char8_t, std::char_traits<char8_t>>
using UTF16StringView = StringViewBase<char16_t, std::char_traits<char16_t>>
using UTF32StringView = StringViewBase<char32_t, std::char_traits<char32_t>>
using WStringView = StringViewBase<wchar_t, std::char_traits<wchar_t>>
template<size_t N, typename Scalar>
using TriangleMeshVertex = vec<N, Scalar>
 Vertex in a triangle mesh.
using TriangleMeshVertexIndex = uint32_t
 Index of a vertex in a triangle mesh.
using TriangleMeshFaceIndex = uint32_t
 Index of a triangle in a triangle mesh, equal to the index of the first vertex index divided by 3.
template<std::size_t Index, typename V>
using variant_alternative_t = typename variant_alternative<Index, V>::type
 Get the type of the variant alternative with a given index in a variant type.
template<typename... Args>
using DebugFormatString = DebugFormatStringBase<std::type_identity_t<Args>...>
using Offset2D = Offset<2>
 Offset in a 2D data region.
using Offset3D = Offset<3>
 Offset in a 3D data region.
using Extent2D = Extent<2>
 Size of a 2D data region.
using Extent3D = Extent<3>
 Size of a 3D data region.
using Region2D = Region<2>
 Rectangular region of 2D data.
using Region3D = Region<3>
 Rectangular region of 3D data.
using FormatArguments = Span<const FormatArgument>
template<typename... Args>
using FormatString = FormatStringBase<std::type_identity_t<Args>...>
using ssize_t = std::make_signed_t<size_t>
using bool8_t = bool
using float32_t = float
using float64_t = double
using i8norm = detail::NormalizedInteger<int8_t>
using u8norm = detail::NormalizedInteger<uint8_t>
using i16norm = detail::NormalizedInteger<int16_t>
using u16norm = detail::NormalizedInteger<uint16_t>
template<size_t N, typename T>
using Point = vec<N, T>
 Generic point in N-dimensional space.
template<size_t N, typename T>
using Length = vec<N, T>
 Generic length in N-dimensional space.
using bvec1 = vec<1, bool>
using bvec2 = vec<2, bool>
using bvec3 = vec<3, bool>
using bvec4 = vec<4, bool>
using b8vec1 = vec<1, bool8_t>
using b8vec2 = vec<2, bool8_t>
using b8vec3 = vec<3, bool8_t>
using b8vec4 = vec<4, bool8_t>
using b16vec1 = vec<1, bool16_t>
using b16vec2 = vec<2, bool16_t>
using b16vec3 = vec<3, bool16_t>
using b16vec4 = vec<4, bool16_t>
using b32vec1 = vec<1, bool32_t>
using b32vec2 = vec<2, bool32_t>
using b32vec3 = vec<3, bool32_t>
using b32vec4 = vec<4, bool32_t>
using b64vec1 = vec<1, bool64_t>
using b64vec2 = vec<2, bool64_t>
using b64vec3 = vec<3, bool64_t>
using b64vec4 = vec<4, bool64_t>
using ivec1 = vec<1, int>
using ivec2 = vec<2, int>
using ivec3 = vec<3, int>
using ivec4 = vec<4, int>
using uvec1 = vec<1, unsigned>
using uvec2 = vec<2, unsigned>
using uvec3 = vec<3, unsigned>
using uvec4 = vec<4, unsigned>
using i8vec1 = vec<1, int8_t>
using i8vec2 = vec<2, int8_t>
using i8vec3 = vec<3, int8_t>
using i8vec4 = vec<4, int8_t>
using u8vec1 = vec<1, uint8_t>
using u8vec2 = vec<2, uint8_t>
using u8vec3 = vec<3, uint8_t>
using u8vec4 = vec<4, uint8_t>
using i16vec1 = vec<1, int16_t>
using i16vec2 = vec<2, int16_t>
using i16vec3 = vec<3, int16_t>
using i16vec4 = vec<4, int16_t>
using u16vec1 = vec<1, uint16_t>
using u16vec2 = vec<2, uint16_t>
using u16vec3 = vec<3, uint16_t>
using u16vec4 = vec<4, uint16_t>
using i32vec1 = vec<1, int32_t>
using i32vec2 = vec<2, int32_t>
using i32vec3 = vec<3, int32_t>
using i32vec4 = vec<4, int32_t>
using u32vec1 = vec<1, uint32_t>
using u32vec2 = vec<2, uint32_t>
using u32vec3 = vec<3, uint32_t>
using u32vec4 = vec<4, uint32_t>
using i64vec1 = vec<1, int64_t>
using i64vec2 = vec<2, int64_t>
using i64vec3 = vec<3, int64_t>
using i64vec4 = vec<4, int64_t>
using u64vec1 = vec<1, uint64_t>
using u64vec2 = vec<2, uint64_t>
using u64vec3 = vec<3, uint64_t>
using u64vec4 = vec<4, uint64_t>
using izvec1 = vec<1, ssize_t>
using izvec2 = vec<2, ssize_t>
using izvec3 = vec<3, ssize_t>
using izvec4 = vec<4, ssize_t>
using uzvec1 = vec<1, size_t>
using uzvec2 = vec<2, size_t>
using uzvec3 = vec<3, size_t>
using uzvec4 = vec<4, size_t>
using vec1 = vec<1, float>
using vec2 = vec<2, float>
using vec3 = vec<3, float>
using vec4 = vec<4, float>
using dvec1 = vec<1, double>
using dvec2 = vec<2, double>
using dvec3 = vec<3, double>
using dvec4 = vec<4, double>
using f16vec1 = vec<1, float16_t>
using f16vec2 = vec<2, float16_t>
using f16vec3 = vec<3, float16_t>
using f16vec4 = vec<4, float16_t>
using f32vec1 = vec<1, float32_t>
using f32vec2 = vec<2, float32_t>
using f32vec3 = vec<3, float32_t>
using f32vec4 = vec<4, float32_t>
using f64vec1 = vec<1, float64_t>
using f64vec2 = vec<2, float64_t>
using f64vec3 = vec<3, float64_t>
using f64vec4 = vec<4, float64_t>
using i8vec1norm = vec<1, i8norm>
using i8vec2norm = vec<2, i8norm>
using i8vec3norm = vec<3, i8norm>
using i8vec4norm = vec<4, i8norm>
using u8vec1norm = vec<1, u8norm>
using u8vec2norm = vec<2, u8norm>
using u8vec3norm = vec<3, u8norm>
using u8vec4norm = vec<4, u8norm>
using i16vec1norm = vec<1, i16norm>
using i16vec2norm = vec<2, i16norm>
using i16vec3norm = vec<3, i16norm>
using i16vec4norm = vec<4, i16norm>
using u16vec1norm = vec<1, u16norm>
using u16vec2norm = vec<2, u16norm>
using u16vec3norm = vec<3, u16norm>
using u16vec4norm = vec<4, u16norm>
using imat1 = mat<1, 1, int>
using imat2 = mat<2, 2, int>
using imat3 = mat<3, 3, int>
using imat4 = mat<4, 4, int>
using umat1 = mat<1, 1, unsigned>
using umat2 = mat<2, 2, unsigned>
using umat3 = mat<3, 3, unsigned>
using umat4 = mat<4, 4, unsigned>
using i8mat1 = mat<1, 1, int8_t>
using i8mat2 = mat<2, 2, int8_t>
using i8mat3 = mat<3, 3, int8_t>
using i8mat4 = mat<4, 4, int8_t>
using u8mat1 = mat<1, 1, uint8_t>
using u8mat2 = mat<2, 2, uint8_t>
using u8mat3 = mat<3, 3, uint8_t>
using u8mat4 = mat<4, 4, uint8_t>
using i16mat1 = mat<1, 1, int16_t>
using i16mat2 = mat<2, 2, int16_t>
using i16mat3 = mat<3, 3, int16_t>
using i16mat4 = mat<4, 4, int16_t>
using u16mat1 = mat<1, 1, uint16_t>
using u16mat2 = mat<2, 2, uint16_t>
using u16mat3 = mat<3, 3, uint16_t>
using u16mat4 = mat<4, 4, uint16_t>
using i32mat1 = mat<1, 1, int32_t>
using i32mat2 = mat<2, 2, int32_t>
using i32mat3 = mat<3, 3, int32_t>
using i32mat4 = mat<4, 4, int32_t>
using u32mat1 = mat<1, 1, uint32_t>
using u32mat2 = mat<2, 2, uint32_t>
using u32mat3 = mat<3, 3, uint32_t>
using u32mat4 = mat<4, 4, uint32_t>
using i64mat1 = mat<1, 1, int64_t>
using i64mat2 = mat<2, 2, int64_t>
using i64mat3 = mat<3, 3, int64_t>
using i64mat4 = mat<4, 4, int64_t>
using u64mat1 = mat<1, 1, uint64_t>
using u64mat2 = mat<2, 2, uint64_t>
using u64mat3 = mat<3, 3, uint64_t>
using u64mat4 = mat<4, 4, uint64_t>
using mat1 = mat<1, 1, float>
using mat2 = mat<2, 2, float>
using mat3 = mat<3, 3, float>
using mat4 = mat<4, 4, float>
using dmat1 = mat<1, 1, double>
using dmat2 = mat<2, 2, double>
using dmat3 = mat<3, 3, double>
using dmat4 = mat<4, 4, double>
using f16mat1 = mat<1, 1, float16_t>
using f16mat2 = mat<2, 2, float16_t>
using f16mat3 = mat<3, 3, float16_t>
using f16mat4 = mat<4, 4, float16_t>
using f32mat1 = mat<1, 1, float32_t>
using f32mat2 = mat<2, 2, float32_t>
using f32mat3 = mat<3, 3, float32_t>
using f32mat4 = mat<4, 4, float32_t>
using f64mat1 = mat<1, 1, float64_t>
using f64mat2 = mat<2, 2, float64_t>
using f64mat3 = mat<3, 3, float64_t>
using f64mat4 = mat<4, 4, float64_t>
using quat = qua<float>
using dquat = qua<float>
using f16quat = qua<float16_t>
using f32quat = qua<float32_t>
using f64quat = qua<float64_t>
using Clock = std::chrono::steady_clock
using Duration = Clock::duration
using TimePoint = Clock::time_point
template<intmax_t Num, intmax_t Den = 1>
using Ratio = std::ratio<Num, Den>
template<typename Rep, typename Period = Ratio<1, 1>>
using DurationBase = std::chrono::duration<Rep, Period>
template<typename Clock, typename Duration = typename Clock::duration>
using TimePointBase = std::chrono::time_point<Clock, Duration>
using Hours = DurationBase<int64_t, Ratio<60 * 60, 1>>
using Minutes = DurationBase<int64_t, Ratio<60, 1>>
using Seconds = DurationBase<int64_t, Ratio<1, 1>>
using Milliseconds = DurationBase<int64_t, Ratio<1, 1'000>>
using Microseconds = DurationBase<int64_t, Ratio<1, 1'000'000>>
using Nanoseconds = DurationBase<int64_t, Ratio<1, 1'000'000'000>>
using FloatHours = DurationBase<float, Ratio<60 * 60, 1>>
using FloatMinutes = DurationBase<float, Ratio<60, 1>>
using FloatSeconds = DurationBase<float, Ratio<1, 1>>
using FloatMilliseconds = DurationBase<float, Ratio<1, 1'000>>
using FloatMicroseconds = DurationBase<float, Ratio<1, 1'000'000>>
using FloatNanoseconds = DurationBase<float, Ratio<1, 1'000'000'000>>

Enumerations

enum class  SubrangeKind : bool { UNSIZED , SIZED }
enum  : bool8_t { false8 = false , true8 = true }
enum class  ProfileFormat : uint8_t { BINARY = 1 << 0 , JSON = 1 << 1 , TRACE_EVENT_FORMAT = 1 << 2 }
 Format to save profile data in. More...
enum class  MemoryOrder : int {
  RELAXED , CONSUME , ACQUIRE , RELEASE ,
  ACQUIRE_RELEASE , SEQUENTIALLY_CONSISTENT
}

Functions

constexpr std::size_t combineHashes (std::size_t hash, convertible_to< std::size_t > auto... otherHashes)
template<typename T, typename... Ts>
constexpr std::size_t getHash (const T &value, const Ts &... otherValues)
constexpr std::size_t getRangeHash (input_range auto &&range)
constexpr void iterSwap (auto itA, auto itB)
constexpr void swapRanges (input_range auto &&rangeA, input_range auto &&rangeB)
constexpr void forEach (input_range auto &&range, auto operation)
constexpr auto transform (input_range auto &&range, auto outputIterator, auto transformationFunction)
constexpr auto transform (input_range auto &&rangeA, input_range auto &&rangeB, auto outputIterator, auto transformationFunction)
constexpr auto accumulate (input_range auto &&range, auto initialValue)
constexpr auto accumulate (input_range auto &&range, auto initialValue, auto reductionFunction)
constexpr auto reduce (input_range auto &&range)
constexpr auto reduce (input_range auto &&range, auto initialValue)
constexpr auto reduce (input_range auto &&range, auto initialValue, auto reductionFunction)
constexpr bool anyOf (input_range auto &&range, auto predicate)
constexpr bool allOf (input_range auto &&range, auto predicate)
constexpr bool noneOf (input_range auto &&range, auto predicate)
constexpr auto count (input_range auto &&range, const auto &value)
constexpr auto countIf (input_range auto &&range, auto predicate)
constexpr auto find (input_range auto &&range, const auto &value)
template<auto Member>
constexpr auto findBy (input_range auto &&range, const auto &value)
constexpr auto findIf (input_range auto &&range, auto predicate)
constexpr auto findIfNot (input_range auto &&range, auto predicate)
constexpr auto findFirstOf (input_range auto &&range, forward_range auto &&values)
constexpr auto findFirstOf (input_range auto &&range, forward_range auto &&values, auto equal)
constexpr auto findEnd (forward_range auto &&range, forward_range auto &&values)
constexpr auto findEnd (forward_range auto &&range, forward_range auto &&values, auto equal)
constexpr auto search (forward_range auto &&range, forward_range auto &&sequence)
constexpr auto search (forward_range auto &&range, forward_range auto &&sequence, auto equal)
constexpr auto mismatch (input_range auto &&range, input_range auto &&sequence)
constexpr auto mismatch (input_range auto &&range, input_range auto &&sequence, auto equal)
constexpr auto adjacentFind (forward_range auto &&range)
constexpr auto adjacentFind (forward_range auto &&range, auto equal)
constexpr bool contains (input_range auto &&range, const auto &value)
template<auto Member>
constexpr auto containsBy (input_range auto &&range, const auto &value)
constexpr bool contains (input_range auto &&range, const auto &value, auto equal)
constexpr bool containsSubrange (forward_range auto &&range, forward_range auto &&sequence)
constexpr bool containsSubrange (forward_range auto &&range, forward_range auto &&sequence, auto equal)
constexpr bool startsWith (input_range auto &&range, input_range auto &&sequence)
constexpr bool startsWith (input_range auto &&range, input_range auto &&sequence, auto equal)
constexpr bool endsWith (input_range auto &&range, input_range auto &&sequence)
constexpr bool endsWith (input_range auto &&range, input_range auto &&sequence, auto equal)
constexpr bool equal (input_range auto &&rangeA, input_range auto &&rangeB)
constexpr bool equal (input_range auto &&rangeA, input_range auto &&rangeB, auto equal)
constexpr bool lexicographicalCompare (input_range auto &&rangeA, input_range auto &&rangeB)
constexpr bool lexicographicalCompare (input_range auto &&rangeA, input_range auto &&rangeB, auto compare)
constexpr auto minElement (forward_range auto &&range)
constexpr auto minElement (forward_range auto &&range, auto compare)
constexpr auto maxElement (forward_range auto &&range)
constexpr auto maxElement (forward_range auto &&range, auto compare)
constexpr auto minmaxElement (forward_range auto &&range)
constexpr auto minmaxElement (forward_range auto &&range, auto compare)
constexpr bool isSorted (forward_range auto &&range)
constexpr bool isSorted (forward_range auto &&range, auto compare)
constexpr bool isPartitioned (input_range auto &&range, auto compare)
constexpr bool includes (input_range auto &&sortedRange, input_range auto &&sortedSequence)
constexpr bool includes (input_range auto &&sortedRange, input_range auto &&sortedSequence, auto compare)
constexpr bool binarySearch (forward_range auto &&sortedRange, const auto &value)
constexpr bool binarySearch (forward_range auto &&sortedRange, const auto &value, auto compare)
constexpr auto lowerBound (forward_range auto &&sortedRange, const auto &value, auto compare)
constexpr auto lowerBound (forward_range auto &&sortedRange, const auto &value)
constexpr auto upperBound (forward_range auto &&sortedRange, const auto &value)
constexpr auto upperBound (forward_range auto &&sortedRange, const auto &value, auto compare)
constexpr auto equalRange (forward_range auto &&sortedRange, const auto &value, auto compare)
constexpr auto equalRange (forward_range auto &&sortedRange, const auto &value)
constexpr auto partitionPoint (forward_range auto &&partitionedRange, auto compare)
constexpr auto merge (input_range auto &&sortedRangeA, input_range auto &&sortedRangeB, auto outputIterator)
constexpr auto merge (input_range auto &&sortedRangeA, input_range auto &&sortedRangeB, auto outputIterator, auto compare)
constexpr auto inplaceMerge (bidirectional_range auto &&sortedRange, auto middleIterator)
constexpr auto inplaceMerge (bidirectional_range auto &&sortedRange, auto middleIterator, auto compare)
constexpr void sort (random_access_range auto &&range)
constexpr void sort (random_access_range auto &&range, auto compare)
template<auto... Members>
constexpr void sortByAscending (random_access_range auto &&range)
template<auto... Members>
constexpr void sortByDescending (random_access_range auto &&range)
constexpr void stableSort (random_access_range auto &&range)
constexpr void stableSort (random_access_range auto &&range, auto compare)
template<auto... Members>
constexpr void stableSortByAscending (random_access_range auto &&range)
template<auto... Members>
constexpr void stableSortByDescending (random_access_range auto &&range)
constexpr void partialSort (random_access_range auto &&range, auto middleIterator)
constexpr void partialSort (random_access_range auto &&range, auto middleIterator, auto compare)
constexpr auto partialSortCopy (input_range auto &&range, random_access_range auto &&outputRange)
constexpr auto partialSortCopy (input_range auto &&range, random_access_range auto &&outputRange, auto compare)
constexpr auto partition (forward_range auto &&range, auto predicate)
constexpr auto stablePartition (bidirectional_range auto &&range, auto predicate)
constexpr auto partitionCopy (input_range auto &&range, auto trueOutputIterator, auto falseOutputIterator, auto predicate)
constexpr auto nthElement (random_access_range auto &&range, auto nthIterator)
constexpr auto nthElement (random_access_range auto &&range, auto nthIterator, auto compare)
constexpr auto unique (forward_range auto &&range)
constexpr auto unique (forward_range auto &&range, auto equal)
constexpr auto uniqueCopy (input_range auto &&range, auto outputIterator)
constexpr auto uniqueCopy (input_range auto &&range, auto outputIterator, auto equal)
constexpr auto remove (forward_range auto &&range, const auto &value)
constexpr auto removeIf (forward_range auto &&range, auto predicate)
constexpr auto removeCopy (input_range auto &&range, auto outputIterator, const auto &value)
constexpr auto removeCopyIf (input_range auto &&range, auto outputIterator, auto predicate)
constexpr auto replace (forward_range auto &&range, const auto &oldValue, const auto &newValue)
constexpr auto replaceIf (forward_range auto &&range, auto predicate, const auto &newValue)
constexpr auto replaceCopy (input_range auto &&range, auto outputIterator, const auto &oldValue, const auto &newValue)
constexpr auto replaceCopyIf (input_range auto &&range, auto outputIterator, auto predicate, const auto &newValue)
void shuffle (random_access_range auto &&range, auto &&uniformRandomBitGenerator)
auto sample (forward_range auto &&range, auto outputIterator, auto n, auto &&uniformRandomBitGenerator)
constexpr void reverse (bidirectional_range auto &&range)
constexpr auto reverseCopy (bidirectional_range auto &&range, auto outputIterator)
constexpr auto rotate (forward_range auto &&range, auto middle)
constexpr auto rotateCopy (forward_range auto &&range, auto middle, auto outputIterator)
constexpr auto shiftLeft (forward_range auto &&range, auto n)
constexpr auto shiftRight (forward_range auto &&range, auto n)
constexpr auto copy (input_range auto &&range, auto outputIterator)
constexpr auto copyIf (input_range auto &&range, auto outputIterator, auto predicate)
constexpr auto copyBackward (bidirectional_range auto &&range, auto outputEnd)
constexpr auto move (input_range auto &&range, auto outputIterator)
constexpr auto moveBackward (bidirectional_range auto &&range, auto outputEnd)
constexpr void fill (forward_range auto &&range, const auto &value)
constexpr void iota (forward_range auto &&range, auto firstValue)
constexpr void generate (forward_range auto &&range, auto generate)
void unreachable ()
template<typename T, typename... Us>
requires (std::is_same_v<T, Us> && ...)
 Array (T, Us...) -> Array< T, 1+sizeof...(Us)>
template<typename T, std::size_t N>
constexpr Array< std::remove_cv_t< T >, N > toArray (T(&a)[N])
template<typename T, std::size_t N>
constexpr Array< std::remove_cv_t< T >, N > toArray (T(&&a)[N])
template<typename StringLike>
 ConstantString (const StringLike &str) -> ConstantString< std::remove_cvref_t< decltype(str[0])>, detail::constant_string_length_v< StringLike > >
template<typename CharT, std::size_t LengthA, std::size_t LengthB>
constexpr auto operator+ (const ConstantString< CharT, LengthA > &a, const ConstantString< CharT, LengthB > &b)
template<typename CharT, std::size_t LengthA, std::size_t N>
constexpr auto operator+ (const ConstantString< CharT, LengthA > &a, const CharT(&b)[N])
template<typename CharT, std::size_t N, std::size_t LengthB>
constexpr auto operator+ (const CharT(&a)[N], const ConstantString< CharT, LengthB > &b)
template<typename A, typename AllocatorA, typename B, typename AllocatorB>
requires (requires(const A x, const B y) { x == y; })
constexpr bool operator== (const Indirect< A, AllocatorA > &a, const Indirect< B, AllocatorB > &b)
template<typename A, typename AllocatorA, typename B>
requires (!std::is_same_v<std::remove_cvref_t<B>, Indirect<A, AllocatorA>> && (std::is_same_v<std::remove_cv_t<A>, bool> || !template_specialization_of<std::remove_cvref_t<B>, Indirect>) && equality_comparable<A, B>)
constexpr bool operator== (const Indirect< A, AllocatorA > &a, const B &b)
template<typename A, typename AllocatorA, typename B, typename AllocatorB>
requires three_way_comparable<A, B>
constexpr std::compare_three_way_result_t< A, B > operator<=> (const Indirect< A, AllocatorA > &a, const Indirect< B, AllocatorB > &b)
template<typename A, typename AllocatorA, typename B>
requires (!std::is_same_v<std::remove_cvref_t<B>, Indirect<A, AllocatorA>> && (std::is_same_v<std::remove_cv_t<A>, bool> || !template_specialization_of<std::remove_cvref_t<B>, Indirect>) && three_way_comparable<A, B>)
constexpr std::compare_three_way_result_t< A, B > operator<=> (const Indirect< A, AllocatorA > &a, const B &b)
template<typename T, typename U>
requires equality_comparable<T, U>
constexpr bool operator== (const Optional< T > &a, const Optional< U > &b)
 Compare two optionals for equality.
template<typename T>
constexpr bool operator== (Nullopt value, const Optional< T > &opt)
 Check if an optional is empty.
template<typename T>
constexpr bool operator== (const Optional< T > &opt, Nullopt value)
 Check if an optional is empty.
template<typename T, typename U>
requires (!template_specialization_of<std::remove_cvref_t<U>, Optional> && equality_comparable<T, U>)
constexpr bool operator== (const Optional< T > &opt, const U &value)
 Compare an optional to a value for equality.
template<typename T, typename U>
requires (!template_specialization_of<std::remove_cvref_t<U>, Optional> && equality_comparable<U, T>)
constexpr bool operator== (const U &value, const Optional< T > &opt)
 Compare an optional to a value for equality.
template<typename T, typename U>
requires three_way_comparable<T, U>
constexpr std::compare_three_way_result_t< T, U > operator<=> (const Optional< T > &a, const Optional< U > &b)
 Compare two optionals.
template<typename T>
constexpr std::strong_ordering operator<=> (const Optional< T > &opt, Nullopt value)
 Compare an optional against an empty optional.
template<typename T, typename U>
requires (!template_specialization_of<std::remove_cvref_t<U>, Optional> && three_way_comparable<T, U>)
constexpr std::compare_three_way_result_t< T, U > operator<=> (const Optional< T > &opt, const U &value)
 Compare an optional to a value.
template<typename T, typename U>
requires (!template_specialization_of<std::remove_cvref_t<U>, Optional> && three_way_comparable<U, T>)
constexpr std::compare_three_way_result_t< U, T > operator<=> (const U &value, const Optional< T > &opt)
 Compare an optional to a value.
template<typename T1, typename T2>
 Pair (T1, T2) -> Pair< T1, T2 >
template<typename T1, typename T2, typename U1, typename U2>
constexpr bool operator== (const Pair< T1, T2 > &a, const Pair< U1, U2 > &b)
template<typename T1, typename T2, typename U1, typename U2>
constexpr std::common_comparison_category_t< detail::SynthThreeWayResult< T1, U1 >, detail::SynthThreeWayResult< T2, U2 > > operator<=> (const Pair< T1, T2 > &a, const Pair< U1, U2 > &b)
template<typename T1, typename T2>
constexpr Pair< std::unwrap_ref_decay_t< T1 >, std::unwrap_ref_decay_t< T2 > > make_pair (T1 &&x, T2 &&y)
template<std::size_t Index, typename T1, typename T2>
constexpr tuple_element_t< Index, Pair< T1, T2 > > & get (Pair< T1, T2 > &t) noexcept
template<std::size_t Index, typename T1, typename T2>
constexpr const tuple_element_t< Index, Pair< T1, T2 > > & get (const Pair< T1, T2 > &t) noexcept
template<std::size_t Index, typename T1, typename T2>
constexpr tuple_element_t< Index, Pair< T1, T2 > > && get (Pair< T1, T2 > &&t) noexcept
template<std::size_t Index, typename T1, typename T2>
constexpr const tuple_element_t< Index, Pair< T1, T2 > > && get (const Pair< T1, T2 > &&t) noexcept
template<typename T, typename U>
constexpr T & get (Pair< T, U > &t) noexcept
template<typename T, typename U>
constexpr const T & get (const Pair< T, U > &t) noexcept
template<typename T, typename U>
constexpr T && get (Pair< T, U > &&t) noexcept
template<typename T, typename U>
constexpr const T && get (const Pair< T, U > &&t) noexcept
template<typename T, typename U>
constexpr T & get (Pair< U, T > &t) noexcept
template<typename T, typename U>
constexpr const T & get (const Pair< U, T > &t) noexcept
template<typename T, typename U>
constexpr T && get (Pair< U, T > &&t) noexcept
template<typename T, typename U>
constexpr const T && get (const Pair< U, T > &&t) noexcept
template<typename ColumnType, typename T, typename ElementID, typename Container>
requires (requires(Container c) { c.template column<ColumnType>(); })
constexpr decltype(auto) column (Registry< T, ElementID, Container > &r)
template<typename ColumnType, typename T, typename ElementID, typename Container>
requires (requires(const Container c) { c.template column<ColumnType>(); })
constexpr decltype(auto) column (const Registry< T, ElementID, Container > &r)
template<size_t ColumnIndex, typename T, typename ElementID, typename Container>
requires (requires(Container c) { c.template column<ColumnIndex>(); })
constexpr decltype(auto) column (Registry< T, ElementID, Container > &r)
template<size_t ColumnIndex, typename T, typename ElementID, typename Container>
requires (requires(const Container c) { c.template column<ColumnIndex>(); })
constexpr decltype(auto) column (const Registry< T, ElementID, Container > &r)
template<typename T, std::size_t N, std::size_t M>
constexpr bool operator== (Span< T, N > a, Span< T, M > b)
template<typename T, std::size_t N, std::size_t M>
constexpr bool operator!= (Span< T, N > a, Span< T, M > b)
template<typename T, std::size_t N, std::size_t M>
constexpr bool operator< (Span< T, N > a, Span< T, M > b)
template<typename T, std::size_t N, std::size_t M>
constexpr bool operator<= (Span< T, N > a, Span< T, M > b)
template<typename T, std::size_t N, std::size_t M>
constexpr bool operator> (Span< T, N > a, Span< T, M > b)
template<typename T, std::size_t N, std::size_t M>
constexpr bool operator>= (Span< T, N > a, Span< T, M > b)
template<typename R>
 Span (R &&range) -> Span< std::remove_reference_t< decltype(*std::data(range))> >
template<typename T, std::size_t N>
 Span (T(&)[N]) -> Span< T, N >
template<typename T, std::size_t N>
 Span (Array< T, N > &) -> Span< T, N >
template<typename T, std::size_t N>
 Span (const Array< T, N > &) -> Span< const T, N >
template<typename Pointer, typename PointerOrSize>
 Span (Pointer data, PointerOrSize &&) -> Span< std::remove_reference_t< decltype(data[0])> >
template<typename T, std::size_t N>
auto asBytes (Span< T, N > s) noexcept
template<typename T, std::size_t N>
auto asWritableBytes (Span< T, N > s) noexcept
template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
constexpr bool operator== (StridedSpan< T, N, S > a, StridedSpan< T, M, R > b)
template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
constexpr bool operator!= (StridedSpan< T, N, S > a, StridedSpan< T, M, R > b)
template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
constexpr bool operator< (StridedSpan< T, N, S > a, StridedSpan< T, M, R > b)
template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
constexpr bool operator<= (StridedSpan< T, N, S > a, StridedSpan< T, M, R > b)
template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
constexpr bool operator> (StridedSpan< T, N, S > a, StridedSpan< T, M, R > b)
template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
constexpr bool operator>= (StridedSpan< T, N, S > a, StridedSpan< T, M, R > b)
template<typename R>
 StridedSpan (R &&range) -> StridedSpan< std::remove_reference_t< decltype(*std::data(range))>, DYNAMIC_EXTENT, sizeof(std::remove_reference_t< decltype(*std::data(range))>)>
template<typename OuterR, typename T, typename Outer>
 StridedSpan (OuterR &&range, T Outer::*) -> StridedSpan< std::conditional_t< std::is_const_v< std::remove_reference_t< decltype(*std::data(range))> >, const T, T >, DYNAMIC_EXTENT, sizeof(Outer)>
template<typename T, std::size_t N>
 StridedSpan (T(&)[N]) -> StridedSpan< T, N, sizeof(T)>
template<typename T, std::size_t N, typename Outer>
 StridedSpan (Outer(&)[N], T Outer::*) -> StridedSpan< T, N, sizeof(Outer)>
template<typename T, std::size_t N, typename Outer>
 StridedSpan (const Outer(&)[N], T Outer::*) -> StridedSpan< const T, N, sizeof(Outer)>
template<typename T, std::size_t N>
 StridedSpan (Array< T, N > &) -> StridedSpan< T, N, sizeof(T)>
template<typename T, std::size_t N, typename Outer>
 StridedSpan (Array< Outer, N > &, T Outer::*) -> StridedSpan< T, N, sizeof(Outer)>
template<typename T, std::size_t N>
 StridedSpan (const Array< T, N > &) -> StridedSpan< const T, N, sizeof(T)>
template<typename T, std::size_t N, typename Outer>
 StridedSpan (const Array< Outer, N > &, T Outer::*) -> StridedSpan< const T, N, sizeof(Outer)>
template<typename Pointer, typename PointerOrSize>
 StridedSpan (Pointer base, PointerOrSize &&) -> StridedSpan< std::remove_reference_t< decltype(base[0])> >
template<typename T, std::size_t N, std::size_t S>
auto as_strided_bytes (StridedSpan< T, N, S > s) noexcept
template<typename T, std::size_t N, std::size_t S>
auto as_strided_writable_bytes (StridedSpan< T, N, S > s) noexcept
String toString (int value)
String toString (long value)
String toString (long long value)
String toString (unsigned value)
String toString (unsigned long value)
String toString (unsigned long long value)
String toString (float value)
String toString (double value)
String toString (long double value)
template<std::input_or_output_iterator I, std::sentinel_for< I > S>
 Subrange (I, S) -> Subrange< I, S >
template<std::input_or_output_iterator I, std::sentinel_for< I > S>
 Subrange (I, S, detail::make_unsigned_like_t< detail::iter_difference_t< I > >) -> Subrange< I, S, SubrangeKind::SIZED >
template<detail::borrowed_range R>
 Subrange (R &&) -> Subrange< decltype(std::begin(std::declval< R & >())), decltype(std::end(std::declval< R & >())),(detail::sized_range< R >||std::sized_sentinel_for< decltype(std::end(std::declval< R & >())), decltype(std::begin(std::declval< R & >()))>) ? SubrangeKind::SIZED :SubrangeKind::UNSIZED >
template<detail::borrowed_range R>
 Subrange (R &&, detail::iter_difference_t< decltype(std::begin(std::declval< R & >()))>) -> Subrange< decltype(std::begin(std::declval< R & >())), decltype(std::end(std::declval< R & >())), SubrangeKind::SIZED >
template<std::size_t Index, typename Row, typename Allocator>
constexpr decltype(auto) get (Table< Row, Allocator > &t, std::size_t rowIndex)
template<std::size_t Index, typename Row, typename Allocator>
constexpr decltype(auto) get (const Table< Row, Allocator > &t, std::size_t rowIndex)
template<typename T, typename Row, typename Allocator>
constexpr T & get (Table< Row, Allocator > &t, std::size_t rowIndex)
template<typename T, typename Row, typename Allocator>
constexpr const T & get (const Table< Row, Allocator > &t, std::size_t rowIndex)
template<typename T, typename Row, typename Allocator>
constexpr Span< T > column (Table< Row, Allocator > &t)
template<typename T, typename Row, typename Allocator>
constexpr Span< const T > column (const Table< Row, Allocator > &t)
template<std::size_t ColumnIndex, typename Row, typename Allocator>
constexpr auto column (Table< Row, Allocator > &t)
template<std::size_t ColumnIndex, typename Row, typename Allocator>
constexpr auto column (const Table< Row, Allocator > &t)
template<typename... Ts>
 Tuple (Ts...) -> Tuple< Ts... >
template<typename T1, typename T2>
 Tuple (Pair< T1, T2 >) -> Tuple< T1, T2 >
template<typename... TTypes, typename... UTypes>
constexpr bool operator== (const Tuple< TTypes... > &a, const Tuple< UTypes... > &b)
template<typename... TTypes, typename... UTypes>
constexpr std::common_comparison_category_t< detail::SynthThreeWayResult< TTypes, UTypes >... > operator<=> (const Tuple< TTypes... > &a, const Tuple< UTypes... > &b)
template<typename... Ts>
constexpr Tuple< std::unwrap_ref_decay_t< Ts >... > make_tuple (Ts &&... ts)
template<typename... Ts>
constexpr Tuple< Ts &... > tie (Ts &... ts)
template<typename... Ts>
constexpr Tuple< Ts &&... > forward_as_tuple (Ts &&... ts)
template<typename... Tuples>
constexpr auto tuple_cat (Tuples &&... tuples)
template<std::size_t Index, typename... Ts>
constexpr decltype(auto) get (Tuple< Ts... > &t) noexcept
template<std::size_t Index, typename... Ts>
constexpr decltype(auto) get (const Tuple< Ts... > &t) noexcept
template<std::size_t Index, typename... Ts>
constexpr decltype(auto) get (Tuple< Ts... > &&t) noexcept
template<std::size_t Index, typename... Ts>
constexpr decltype(auto) get (const Tuple< Ts... > &&t) noexcept
template<typename T, typename... Ts>
constexpr T & get (Tuple< Ts... > &t) noexcept
template<typename T, typename... Ts>
constexpr const T & get (const Tuple< Ts... > &t) noexcept
template<typename T, typename... Ts>
constexpr T && get (Tuple< Ts... > &&t) noexcept
template<typename T, typename... Ts>
constexpr const T && get (const Tuple< Ts... > &&t) noexcept
template<typename Function, typename... Ts>
constexpr decltype(auto) apply (Function &&function, Tuple< Ts... > &tuple)
template<typename Function, typename... Ts>
constexpr decltype(auto) apply (Function &&function, const Tuple< Ts... > &tuple)
template<typename Function, typename... Ts>
constexpr decltype(auto) apply (Function &&function, Tuple< Ts... > &&tuple)
template<typename Function, typename... Ts>
constexpr decltype(auto) apply (Function &&function, const Tuple< Ts... > &&tuple)
constexpr bool operator== (Monostate, Monostate) noexcept
 Compare two monostates for equality.
constexpr std::strong_ordering operator<=> (Monostate, Monostate) noexcept
 Compare two monostates.
template<typename Visitor, typename V>
requires (requires { typename std::remove_reference_t<V>::GREM_private_DerivedFromVariantTag; })
constexpr decltype(auto) visit (Visitor &&visitor, V &&variant)
 Call a visitor functor with the currently active underlying value of a variant.
template<typename T, typename... Ts>
constexpr bool holds_alternative (const Variant< Ts... > &variant) noexcept
 Check if a variant currently holds the alternative with the given type.
template<std::size_t Index, typename... Ts>
constexpr bool holds_alternative (const Variant< Ts... > &variant) noexcept
 Check if a variant currently holds the alternative with the given index.
template<typename T, typename... Ts>
constexpr T & get (Variant< Ts... > &variant)
 Access the underlying value with the given type of a variant.
template<typename T, typename... Ts>
constexpr const T & get (const Variant< Ts... > &variant)
 Access the underlying value with the given type of a variant.
template<std::size_t Index, typename... Ts>
constexpr auto & get (Variant< Ts... > &variant)
 Access the underlying value with the given index of a variant.
template<std::size_t Index, typename... Ts>
constexpr const auto & get (const Variant< Ts... > &variant)
 Access the underlying value with the given index of a variant.
template<typename T, typename... Ts>
constexpr T * get_if (Variant< Ts... > *variant) noexcept
 Access the underlying value with the given type of a variant if it is the currently active alternative.
template<typename T, typename... Ts>
constexpr const T * get_if (const Variant< Ts... > *variant) noexcept
 Access the underlying value with the given type of a variant if it is the currently active alternative.
template<std::size_t Index, typename... Ts>
constexpr auto * get_if (Variant< Ts... > *variant) noexcept
 Access the underlying value with the given index of a variant if it is the currently active alternative.
template<std::size_t Index, typename... Ts>
constexpr const auto * get_if (const Variant< Ts... > *variant) noexcept
 Access the underlying value with the given index of a variant if it is the currently active alternative.
template<typename... Ts>
requires (requires { { a.template as<Ts>() == b.template as<Ts>() } -> detail::bool_convertible; } && ...)
constexpr bool operator== (const Variant< Ts... > &a, const Variant< Ts... > &b)
 Compare two variants for equality.
template<typename... Ts>
requires (requires { { a.template as<Ts>() != b.template as<Ts>() } -> detail::bool_convertible; } && ...)
constexpr bool operator!= (const Variant< Ts... > &a, const Variant< Ts... > &b)
 Compare two variants for inequality.
template<typename... Ts>
requires (requires { { a.template as<Ts>() < b.template as<Ts>() } -> detail::bool_convertible; } && ...)
constexpr bool operator< (const Variant< Ts... > &a, const Variant< Ts... > &b)
 Check if a variant is less than another variant.
template<typename... Ts>
requires (requires { { a.template as<Ts>() <= b.template as<Ts>() } -> detail::bool_convertible; } && ...)
constexpr bool operator<= (const Variant< Ts... > &a, const Variant< Ts... > &b)
 Check if a variant is less than or equal to another variant.
template<typename... Ts>
requires (requires { { a.template as<Ts>() > b.template as<Ts>() } -> detail::bool_convertible; } && ...)
constexpr bool operator> (const Variant< Ts... > &a, const Variant< Ts... > &b)
 Check if a variant is greater than another variant.
template<typename... Ts>
requires (requires { { a.template as<Ts>() >= b.template as<Ts>() } -> detail::bool_convertible; } && ...)
constexpr bool operator>= (const Variant< Ts... > &a, const Variant< Ts... > &b)
 Check if a variant is greater than or equal to another variant.
template<typename... Ts>
constexpr std::common_comparison_category_t< std::compare_three_way_result_t< Ts >... > operator<=> (const Variant< Ts... > &a, const Variant< Ts... > &b)
 Compare two variants.
template<typename... Functors>
 Overloaded (Functors...) -> Overloaded< Functors... >
template<typename V>
constexpr detail::Matcher< V > match (V &&variant)
 Choose a function overload to execute based on the active alternative of a variant.
template<typename... Args>
constexpr size_t getFormattedSizeDebug (DebugFormatString< Args... > format, const Args &... args)
template<typename Output, typename... Args>
constexpr void formatToDebug (Output &output, DebugFormatString< Args... > format, const Args &... args)
template<typename... Args>
GREM_ALWAYS_INLINE void printDebug (std::FILE *output, DebugFormatString< Args... > format, const Args &... args)
GREM_ALWAYS_INLINE void printlnDebug (std::FILE *output)
template<typename... Args>
GREM_ALWAYS_INLINE void printlnDebug (std::FILE *output, DebugFormatString< Args... > format, const Args &... args)
template<typename... Args>
GREM_ALWAYS_INLINE void printDebug (DebugFormatString< Args... > format, const Args &... args)
GREM_ALWAYS_INLINE void printlnDebug ()
template<typename... Args>
GREM_ALWAYS_INLINE void printlnDebug (DebugFormatString< Args... > format, const Args &... args)
template<typename... Args>
GREM_ALWAYS_INLINE void eprintDebug (DebugFormatString< Args... > format, const Args &... args)
GREM_ALWAYS_INLINE void eprintlnDebug ()
template<typename... Args>
GREM_ALWAYS_INLINE void eprintlnDebug (DebugFormatString< Args... > format, const Args &... args)
template<typename... Args>
String formatStringDebug (DebugFormatString< Args... > format, const Args &... args)
template<size_t N, typename... Args>
detail::SmallFormattedString< N > formatSmallStringDebug (DebugFormatString< Args... > format, const Args &... args)
constexpr Offset2D & operator+= (Offset2D &a, Offset2D b) noexcept
constexpr Offset2D & operator+= (Offset2D &a, Extent2D b) noexcept
constexpr Offset2D & operator-= (Offset2D &a, Extent2D b) noexcept
constexpr Offset2D operator- (Offset2D a) noexcept
constexpr Offset2D operator+ (Offset2D a, Offset2D b) noexcept
constexpr Offset2D operator+ (Offset2D a, Extent2D b) noexcept
constexpr Offset2D operator+ (Extent2D a, Offset2D b) noexcept
constexpr Offset2D operator- (Offset2D a, Offset2D b) noexcept
constexpr Offset2D operator- (Offset2D a, Extent2D b) noexcept
constexpr Offset2D operator- (Extent2D a, Offset2D b) noexcept
constexpr Offset2D operator* (Offset2D a, int32_t b) noexcept
constexpr Offset2D operator* (int32_t a, Offset2D b) noexcept
constexpr Offset2D operator/ (Offset2D a, int32_t b) noexcept
constexpr Offset2D operator/ (int32_t a, Offset2D b) noexcept
constexpr Offset2D operator* (Offset2D a, uint32_t b) noexcept
constexpr Offset2D operator* (uint32_t a, Offset2D b) noexcept
constexpr Offset2D operator/ (Offset2D a, uint32_t b) noexcept
constexpr Offset2D operator/ (uint32_t a, Offset2D b) noexcept
constexpr Extent2D & operator+= (Extent2D &a, Extent2D b) noexcept
constexpr Extent2D & operator-= (Extent2D &a, Extent2D b) noexcept
constexpr Extent2D & operator*= (Extent2D &a, uint32_t b) noexcept
constexpr Extent2D & operator/= (Extent2D &a, uint32_t b) noexcept
constexpr Extent2D operator+ (Extent2D a, Extent2D b) noexcept
constexpr Extent2D operator- (Extent2D a, Extent2D b) noexcept
constexpr Extent2D operator* (Extent2D a, uint32_t b) noexcept
constexpr Extent2D operator* (uint32_t a, Extent2D b) noexcept
constexpr Extent2D operator/ (Extent2D a, uint32_t b) noexcept
constexpr Extent2D operator/ (uint32_t a, Extent2D b) noexcept
constexpr void formatToV (FormatOutput &output, CStringView format, FormatArguments arguments)
template<typename... Args>
constexpr size_t getFormattedSize (FormatString< Args... > format, const Args &... args)
template<typename Output, typename... Args>
constexpr void formatTo (Output &output, FormatString< Args... > format, const Args &... args)
template<typename... Args>
GREM_ALWAYS_INLINE void print (std::FILE *output, FormatString< Args... > format, const Args &... args)
template<typename... Args>
GREM_ALWAYS_INLINE void print (std::ostream &output, FormatString< Args... > format, const Args &... args)
GREM_ALWAYS_INLINE void println (std::FILE *output)
GREM_ALWAYS_INLINE void println (std::ostream &output)
template<typename... Args>
GREM_ALWAYS_INLINE void println (std::FILE *output, FormatString< Args... > format, const Args &... args)
template<typename... Args>
GREM_ALWAYS_INLINE void println (std::ostream &output, FormatString< Args... > format, const Args &... args)
template<typename... Args>
GREM_ALWAYS_INLINE void print (FormatString< Args... > format, const Args &... args)
GREM_ALWAYS_INLINE void println ()
template<typename... Args>
GREM_ALWAYS_INLINE void println (FormatString< Args... > format, const Args &... args)
template<typename... Args>
GREM_ALWAYS_INLINE void eprint (FormatString< Args... > format, const Args &... args)
GREM_ALWAYS_INLINE void eprintln ()
template<typename... Args>
GREM_ALWAYS_INLINE void eprintln (FormatString< Args... > format, const Args &... args)
template<typename... Args>
String formatString (FormatString< Args... > format, const Args &... args)
 Format specification syntax examples:
String formatStringV (CStringView format, FormatArguments arguments)
template<size_t N, typename... Args>
GREM_ALWAYS_INLINE detail::SmallFormattedString< N > formatSmallString (FormatString< Args... > format, const Args &... args)
template<strict_integral T>
GREM_ALWAYS_INLINE constexpr T getBitReversed (T value)
 Get a copy of an integer with its bit order reversed.
template<typename T>
GREM_ALWAYS_INLINE constexpr T getByteReversed (T value)
 Get a copy of a value with its byte order reversed.
template<typename T>
GREM_ALWAYS_INLINE constexpr T convertHostEndianToBigEndian (T value)
 Convert a value in host-endian byte order to the corresponding value in big-endian byte order.
template<typename T>
GREM_ALWAYS_INLINE constexpr T convertHostEndianToLittleEndian (T value)
 Convert a value in host-endian byte order to the corresponding value in little-endian byte order.
template<typename T>
GREM_ALWAYS_INLINE constexpr T convertBigEndianToHostEndian (T value)
 Convert a value in big-endian byte order to the corresponding value in host-endian byte order.
template<typename T>
GREM_ALWAYS_INLINE constexpr T convertLittleEndianToHostEndian (T value)
 Convert a value in little-endian byte order to the corresponding value in host-endian byte order.
template<strict_arithmetic T>
GREM_ALWAYS_INLINE constexpr T midpoint (T a, T b)
 Get the midpoint between two values.
template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr decltype(auto) min (A &&a, B &&b)
 Get the smaller of two values, or the first value if they are equivalent.
template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr decltype(auto) max (A &&a, B &&b)
 Get the greater of two values, or the first value if they are equivalent.
template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr auto minmax (A &&a, B &&b)
 Get the smaller and greater of two values.
template<typename T, typename Low, typename High>
requires (requires(T v, Low l) { v < l; } && requires(T v, High h) { h < v; })
GREM_ALWAYS_INLINE constexpr decltype(auto) clamp (T &&value, Low &&minValue, High &&maxValue)
 Clamp a value to a specific interval.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger rotateBitsLeft (UnsignedInteger value, int shift) noexcept
 Get the result of bitwise left-rotating a value by a number of bits.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger rotateBitsRight (UnsignedInteger value, int shift) noexcept
 Get the result of bitwise right-rotating a value by a number of bits.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int countOneBits (UnsignedInteger value) noexcept
 Get the number of 1 bits in a given value.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int countZeroBits (UnsignedInteger value) noexcept
 Get the number of 0 bits in a given value.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int countLeadingZeroBits (UnsignedInteger value) noexcept
 Get the number of consecutive 0 bits starting at the most significant (leftmost) bit of a given value.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int countLeadingOneBits (UnsignedInteger value) noexcept
 Get the number of consecutive 1 bits starting at the most significant (leftmost) bit of a given value.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int countTrailingZeroBits (UnsignedInteger value) noexcept
 Get the number of consecutive 0 bits starting at the least significant (rightmost) bit of a given value.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int countTrailingOneBits (UnsignedInteger value) noexcept
 Get the number of consecutive 1 bits starting at the least significant (rightmost) bit of a given value.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int getRequiredBitCount (UnsignedInteger value) noexcept
 Get the minimum number of bits required to represent a given value.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger getMaxValueForBits (size_t bits) noexcept
 Get the maximum value that can be represented in a given unsigned integer type using a given number of bits.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr bool isPowerOf2 (UnsignedInteger value) noexcept
 Check if a given integer is a power of 2, i.e. if the number appears in the infinite sequence 2^0, 2^1, 2^2, ..., 2^n.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger roundUpToPowerOf2 (UnsignedInteger value) noexcept
 Get the smallest integral power of 2 that is not less than a given value.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger roundDownToPowerOf2 (UnsignedInteger value) noexcept
 Get the largest integral power of 2 that is not greater than a given value.
template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger roundUpToMultiple (UnsignedInteger value, UnsignedInteger n)
 Get the smallest multiple of n that is not greater than a given value.
template<size_t N, typename T>
constexpr Box< N, T > calculateBoundingBox (StridedSpan< const Point< N, T > > points) noexcept
 Calculate the axis-aligned bounding box of a set of points.
template<size_t N, typename T>
requires (floating_point<T>)
constexpr T calculateBoundingRadius (StridedSpan< const Point< N, T > > points) noexcept
 Calculate the bounding radius from the origin of a set of points.
template<size_t N, typename T>
requires (floating_point<T>)
constexpr Box< N, T > getTransformedBoundingBox (const mat< N+1, N+1, T > &transformation, const Box< N, T > &aabb) noexcept
 Get the axis-aligned bounding box of an axis-aligned box with an affine transformation applied to it.
constexpr bool intersects (const spherical_shape auto &a, const spherical_shape auto &b) noexcept
 Check if two spherical shapes intersect.
constexpr bool intersects (const axis_aligned_box_shape auto &a, const axis_aligned_box_shape auto &b) noexcept
 Check if two axis-aligned box shapes intersect.
constexpr bool intersects (const spherical_shape auto &a, const axis_aligned_box_shape auto &b) noexcept
 Check if a spherical shape intersects an axis-aligned box shape.
constexpr bool intersects (const axis_aligned_box_shape auto &a, const spherical_shape auto &b) noexcept
 Check if an axis-aligned box shape intersects a spherical shape.
template<size_t N, typename T>
constexpr bool intersects (const raycastable_shape auto &a, const LineSegment< N, T > &b) noexcept
 Check if a raycastable shape intersects a line segment.
template<size_t N, typename T>
constexpr bool intersects (const LineSegment< N, T > &a, const raycastable_shape auto &b) noexcept
 Check if a line segment intersects a raycastable shape.
template<typename T>
constexpr bool intersects (const axis_aligned_box_shape auto &a, const Capsule< 2, T > &b) noexcept
 Check if a 2D axis-aligned box shape intersects a 2D capsule.
template<typename T>
constexpr bool intersects (const Capsule< 2, T > &a, const axis_aligned_box_shape auto &b) noexcept
 Check if a 2D capsule intersects a 2D axis-aligned box shape.
template<size_t N, typename T>
constexpr bool intersects (const spherical_shape auto &a, const Capsule< N, T > &b) noexcept
 Check if a spherical shape intersects a capsule.
template<size_t N, typename T>
constexpr bool intersects (const Capsule< N, T > &a, const spherical_shape auto &b) noexcept
 Check if a capsule intersects a spherical shape.
template<size_t N, typename T>
constexpr bool intersects (const Sphere< N, T > &a, const LineSegment< N, T > &b) noexcept
 Check if a sphere intersects a line segment.
template<size_t N, typename T>
constexpr bool intersects (const LineSegment< N, T > &a, const Sphere< N, T > &b) noexcept
 Check if a line segment intersects a sphere.
template<typename T>
constexpr bool intersects (const Circle< T > &a, const LineSegment< 2, T > &b) noexcept
 Check if a circle intersects a line segment.
template<typename T>
constexpr bool intersects (const LineSegment< 2, T > &a, const Circle< T > &b) noexcept
 Check if a line segment intersects a circle.
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > midpoint (vec< N, T > a, vec< N, T > b)
 Get the midpoint between two vectors.
template<typename T>
GREM_ALWAYS_INLINE constexpr T select (bool condition, T ifTrue, T ifFalse)
 Choose between two values based on a condition.
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > select (vec< N, bool > conditions, vec< N, T > ifTrue, vec< N, T > ifFalse)
 Choose between values from two vectors based on a vector of conditions.
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > min (vec< N, T > a, vec< N, T > b)
 Get the smaller of each component of two vectors.
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > max (vec< N, T > a, vec< N, T > b)
 Get the greater of each component of two vectors.
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > clamp (vec< N, T > values, vec< N, T > minValues, vec< N, T > maxValues)
 Clamp each component of two vectors to specific intervals.
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > clamp (vec< N, T > values, T minValue, T maxValue)
 Clamp each component of two vectors to a specific interval.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL sqrt (T a)
 Get the square root of a value.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL inversesqrt (T a)
 Get the reciprocal of the square root of a value.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL fract (T a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL exp (T a) noexcept
 Calculate the result of Euler's number raised to a given power.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL exp2 (T a) noexcept
 Calculate the result of 2 raised to a given power.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL pow (T a, T b) noexcept
 Calculate the result of raising a given value to a given power.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL fmod (T a, T b) noexcept
 Calculate the floating-point remainder of a scalar division.
template<typename T>
requires (floating_point<T> || strict_signed_integral<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL sign (T a)
 Get the sign multiplier of a scalar.
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL wrap (T value, T limit) noexcept
 Wrap a scalar value around a range of non-negative values.
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL equal (T a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL notEqual (T a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL lessThan (T a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL lessThanEqual (T a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL greaterThan (T a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL greaterThanEqual (T a, T b)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL not_ (bool a)
template<size_t N>
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL not_ (vec< N, bool > a)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL any (bool a)
template<size_t N>
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL any (vec< N, bool > a)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL all (bool a)
template<size_t N>
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL all (vec< N, bool > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { abs(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL abs (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { sqrt(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL sqrt (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { inversesqrt(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL inversesqrt (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { cos(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL cos (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { cosh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL cosh (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { acos(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL acos (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { acosh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL acosh (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { sin(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL sin (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { sinh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL sinh (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { asin(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL asin (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { asinh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL asinh (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { tan(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL tan (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { tanh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL tanh (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { atan(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL atan (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { atanh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL atanh (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { cbrt(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL cbrt (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { erf(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL erf (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { erfc(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL erfc (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { lgamma(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL lgamma (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { tgamma(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL tgamma (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { pow(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL pow (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const size_t i) { pow(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL pow (vec< N, T > a, T b)
template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { pow(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL pow (T a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { exp(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL exp (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { exp2(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL exp2 (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { expm1(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL expm1 (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { log(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL log (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { log10(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL log10 (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { log1p(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL log1p (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { log2(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL log2 (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { logb(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL logb (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { ilogb(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, int > GREM_VECTORCALL ilogb (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { round(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL round (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { lround(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, long > GREM_VECTORCALL lround (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { trunc(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL trunc (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { floor(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL floor (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { ceil(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL ceil (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { fract(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fract (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { sign(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL sign (vec< N, T > a)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { fmod(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fmod (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const size_t i) { fmod(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fmod (vec< N, T > a, T b)
template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { fmod(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fmod (T a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { wrap(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL wrap (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const size_t i) { wrap(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL wrap (vec< N, T > a, T b)
template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { wrap(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL wrap (T a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const vec<N, T> z, const size_t i) { fma(x[i], y[i], z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fma (vec< N, T > a, vec< N, T > b, vec< N, T > c)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const T z, const size_t i) { fma(x[i], y[i], z); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fma (vec< N, T > a, vec< N, T > b, T c)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const vec<N, T> z, const size_t i) { fma(x[i], y, z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fma (vec< N, T > a, T b, vec< N, T > c)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const T z, const size_t i) { fma(x[i], y, z); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fma (vec< N, T > a, T b, T c)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { fdim(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fdim (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const size_t i) { fdim(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fdim (vec< N, T > a, T b)
template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { fdim(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL fdim (T a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { equal(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL equal (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { notEqual(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL notEqual (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { lessThan(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL lessThan (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { lessThanEqual(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL lessThanEqual (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { greaterThan(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL greaterThan (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { greaterThanEqual(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL greaterThanEqual (vec< N, T > a, vec< N, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator~ (vec< 1, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator~ (vec< 2, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator~ (vec< 3, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator~ (vec< 4, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator| (vec< 1, T > a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator| (vec< 2, T > a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator| (vec< 3, T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator| (vec< 4, T > a, vec< 4, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator& (vec< 1, T > a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator& (vec< 2, T > a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator& (vec< 3, T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator& (vec< 4, T > a, vec< 4, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator^ (vec< 1, T > a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator^ (vec< 2, T > a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator^ (vec< 3, T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator^ (vec< 4, T > a, vec< 4, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator+ (vec< 1, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator+ (vec< 2, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator+ (vec< 3, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator+ (vec< 4, T > a)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator+ (const mat< 1, R, T > &a)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator+ (const mat< 2, R, T > &a)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator+ (const mat< 3, R, T > &a)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator+ (const mat< 4, R, T > &a)
template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator+ (qua< T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator- (vec< 1, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator- (vec< 2, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator- (vec< 3, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator- (vec< 4, T > a)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator- (const mat< 1, R, T > &a)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator- (const mat< 2, R, T > &a)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator- (const mat< 3, R, T > &a)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator- (const mat< 4, R, T > &a)
template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator- (qua< T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator+ (vec< 1, T > a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator+ (vec< 2, T > a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator+ (vec< 3, T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator+ (vec< 4, T > a, vec< 4, T > b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator+ (const mat< 1, R, T > &a, const mat< 1, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator+ (const mat< 2, R, T > &a, const mat< 2, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator+ (const mat< 3, R, T > &a, const mat< 3, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator+ (const mat< 4, R, T > &a, const mat< 4, R, T > &b)
template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator+ (qua< T > a, qua< T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator+ (vec< 1, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator+ (vec< 2, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator+ (vec< 3, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator+ (vec< 4, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator+ (T a, vec< 1, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator+ (T a, vec< 2, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator+ (T a, vec< 3, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator+ (T a, vec< 4, T > b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator+ (const mat< 1, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator+ (const mat< 2, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator+ (const mat< 3, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator+ (const mat< 4, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator+ (T a, const mat< 1, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator+ (T a, const mat< 2, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator+ (T a, const mat< 3, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator+ (T a, const mat< 4, R, T > &b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator+ (qua< T > a, T b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator+ (T a, qua< T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator- (vec< 1, T > a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator- (vec< 2, T > a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator- (vec< 3, T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator- (vec< 4, T > a, vec< 4, T > b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator- (const mat< 1, R, T > &a, const mat< 1, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator- (const mat< 2, R, T > &a, const mat< 2, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator- (const mat< 3, R, T > &a, const mat< 3, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator- (const mat< 4, R, T > &a, const mat< 4, R, T > &b)
template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator- (qua< T > a, qua< T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator- (vec< 1, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator- (vec< 2, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator- (vec< 3, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator- (vec< 4, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator- (T a, vec< 1, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator- (T a, vec< 2, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator- (T a, vec< 3, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator- (T a, vec< 4, T > b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator- (const mat< 1, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator- (const mat< 2, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator- (const mat< 3, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator- (const mat< 4, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator- (T a, const mat< 1, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator- (T a, const mat< 2, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator- (T a, const mat< 3, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator- (T a, const mat< 4, R, T > &b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator- (qua< T > a, T b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator- (T a, qua< T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator* (vec< 1, T > a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator* (vec< 2, T > a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator* (vec< 3, T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator* (vec< 4, T > a, vec< 4, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator* (vec< 1, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator* (vec< 2, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator* (vec< 3, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator* (vec< 4, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator* (T a, vec< 1, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator* (T a, vec< 2, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator* (T a, vec< 3, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator* (T a, vec< 4, T > b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator* (const mat< 1, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator* (const mat< 2, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator* (const mat< 3, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator* (const mat< 4, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator* (T a, const mat< 1, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator* (T a, const mat< 2, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator* (T a, const mat< 3, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator* (T a, const mat< 4, R, T > &b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator* (qua< T > a, T b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator* (T a, qua< T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator/ (vec< 1, T > a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator/ (vec< 2, T > a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator/ (vec< 3, T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator/ (vec< 4, T > a, vec< 4, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator/ (vec< 1, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator/ (vec< 2, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator/ (vec< 3, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator/ (vec< 4, T > a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL operator/ (T a, vec< 1, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL operator/ (T a, vec< 2, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator/ (T a, vec< 3, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL operator/ (T a, vec< 4, T > b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator/ (const mat< 1, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator/ (const mat< 2, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator/ (const mat< 3, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator/ (const mat< 4, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL operator/ (T a, const mat< 1, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL operator/ (T a, const mat< 2, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL operator/ (T a, const mat< 3, R, T > &b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL operator/ (T a, const mat< 4, R, T > &b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator/ (qua< T > a, T b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator/ (T a, qua< T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL operator+= (vec< 1, T > &a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL operator+= (vec< 2, T > &a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL operator+= (vec< 3, T > &a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL operator+= (vec< 4, T > &a, vec< 4, T > b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL operator+= (mat< 1, R, T > &a, const mat< 1, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL operator+= (mat< 2, R, T > &a, const mat< 2, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL operator+= (mat< 3, R, T > &a, const mat< 3, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL operator+= (mat< 4, R, T > &a, const mat< 4, R, T > &b)
template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL operator+= (qua< T > &a, qua< T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL operator+= (vec< 1, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL operator+= (vec< 2, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL operator+= (vec< 3, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL operator+= (vec< 4, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL operator+= (mat< 1, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL operator+= (mat< 2, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL operator+= (mat< 3, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL operator+= (mat< 4, R, T > &a, T b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL operator+= (qua< T > &a, T b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL operator-= (vec< 1, T > &a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL operator-= (vec< 2, T > &a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL operator-= (vec< 3, T > &a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL operator-= (vec< 4, T > &a, vec< 4, T > b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL operator-= (mat< 1, R, T > &a, const mat< 1, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL operator-= (mat< 2, R, T > &a, const mat< 2, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL operator-= (mat< 3, R, T > &a, const mat< 3, R, T > &b)
template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL operator-= (mat< 4, R, T > &a, const mat< 4, R, T > &b)
template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL operator-= (qua< T > &a, qua< T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL operator-= (vec< 1, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL operator-= (vec< 2, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL operator-= (vec< 3, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL operator-= (vec< 4, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL operator-= (mat< 1, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL operator-= (mat< 2, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL operator-= (mat< 3, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL operator-= (mat< 4, R, T > &a, T b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL operator-= (qua< T > &a, T b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL operator*= (vec< 1, T > &a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL operator*= (vec< 2, T > &a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL operator*= (vec< 3, T > &a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL operator*= (vec< 4, T > &a, vec< 4, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL operator*= (vec< 1, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL operator*= (vec< 2, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL operator*= (vec< 3, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL operator*= (vec< 4, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL operator*= (mat< 1, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL operator*= (mat< 2, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL operator*= (mat< 3, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL operator*= (mat< 4, R, T > &a, T b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL operator*= (qua< T > &a, T b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL operator/= (vec< 1, T > &a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL operator/= (vec< 2, T > &a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL operator/= (vec< 3, T > &a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL operator/= (vec< 4, T > &a, vec< 4, T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL operator/= (vec< 1, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL operator/= (vec< 2, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL operator/= (vec< 3, T > &a, T b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL operator/= (vec< 4, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL operator/= (mat< 1, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL operator/= (mat< 2, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL operator/= (mat< 3, R, T > &a, T b)
template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL operator/= (mat< 4, R, T > &a, T b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL operator/= (qua< T > &a, T b)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL sum (vec< 1, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL sum (vec< 2, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL sum (vec< 3, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL sum (vec< 4, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL product (vec< 1, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL product (vec< 2, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL product (vec< 3, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL product (vec< 4, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL minComponent (vec< 1, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL minComponent (vec< 2, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL minComponent (vec< 3, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL minComponent (vec< 4, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL maxComponent (vec< 1, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL maxComponent (vec< 2, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL maxComponent (vec< 3, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL maxComponent (vec< 4, T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL dot (vec< 1, T > a, vec< 1, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL dot (vec< 2, T > a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL dot (vec< 3, T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL dot (vec< 4, T > a, vec< 4, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL dot (qua< T > a, qua< T > b)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL length2 (T a)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL length2 (vec< 1, T > a)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL length2 (vec< 2, T > a)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL length2 (vec< 3, T > a)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL length2 (vec< 4, T > a)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL length2 (qua< T > a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL length (T a)
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL length (vec< N, T > a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL length (qua< T > a)
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL distance2 (T a, T b)
template<size_t N, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL distance2 (vec< N, T > a, vec< N, T > b)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL distance (T a, T b)
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL distance (vec< N, T > a, vec< N, T > b)
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL normalize (vec< N, T > a)
 Convert a vector to a unit vector of length 1 in the same direction.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL normalize (qua< T > a)
 Convert a quaternion to a unit quaternion of length 1.
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< vec< N, T > > GREM_VECTORCALL tryNormalize (vec< N, T > a)
 Try to convert a vector to a unit vector of length 1 in the same direction.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< T > GREM_VECTORCALL tryDivide (T a, T b)
 Try to divide a floating-point value by a scalar and produce a defined result.
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< vec< N, T > > GREM_VECTORCALL tryDivide (vec< N, T > a, T b)
 Try to divide a floating-point vector by a scalar and produce a defined result.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL getAngle (vec< 2, T > a)
 Get the absolute angle of a 2-dimensional vector, in radians.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< T > GREM_VECTORCALL tryGetAngle (vec< 2, T > a)
 Try to get the absolute angle of a 2-dimensional vector, in radians.
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr DecomposeMagnitudeDirectionResult< N, T > decomposeMagnitudeDirection (vec< N, T > a)
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< DecomposeMagnitudeDirectionResult< N, T > > tryDecomposeMagnitudeDirection (vec< N, T > a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr DecomposeMagnitudeAngleResult< T > decomposeMagnitudeAngle (vec< 2, T > a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< DecomposeMagnitudeAngleResult< T > > tryDecomposeMagnitudeAngle (vec< 2, T > a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL angledVector (T angle)
 Create a 2-dimensional direction unit vector from an angle.
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL determinant (const mat< 1, 1, T > &a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL determinant (const mat< 2, 2, T > &a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL determinant (const mat< 3, 3, T > &a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL determinant (const mat< 4, 4, T > &a)
template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< R, C, T > transpose (const mat< C, R, T > &a)
template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL conjugate (qua< T > a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, 1, T > GREM_VECTORCALL inverse (const mat< 1, 1, T > &a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, 2, T > GREM_VECTORCALL inverse (const mat< 2, 2, T > &a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL inverse (const mat< 3, 3, T > &a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL inverse (const mat< 4, 4, T > &a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, 1, T > GREM_VECTORCALL inverseTranspose (const mat< 1, 1, T > &a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, 2, T > GREM_VECTORCALL inverseTranspose (const mat< 2, 2, T > &a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL inverseTranspose (const mat< 3, 3, T > &a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL inverseTranspose (const mat< 4, 4, T > &a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL inverse (qua< T > a)
template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL cross (vec< 2, T > a, vec< 2, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL cross (vec< 3, T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL cross (qua< T > a, qua< T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL cross (vec< 3, T > a, qua< T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL cross (qua< T > a, vec< 3, T > b)
template<size_t N, size_t C2, size_t R1, typename T>
GREM_ALWAYS_INLINE constexpr mat< C2, R1, T > GREM_VECTORCALL operator* (const mat< N, R1, T > &a, const mat< C2, N, T > &b)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL operator* (const mat< N, N, T > &a, vec< N, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL operator* (qua< T > a, qua< T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator* (qua< T > a, vec< 3, T > b)
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL operator* (vec< 3, T > a, qua< T > b)
template<size_t N, size_t C2, size_t R1, typename T>
GREM_ALWAYS_INLINE constexpr mat< C2, R1, T > GREM_VECTORCALL operator/ (const mat< N, R1, T > &a, const mat< C2, N, T > &b)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL operator/ (const mat< N, N, T > &a, vec< N, T > b)
template<typename T>
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL convertQuaternionTo3x3Matrix (qua< T > a)
template<typename T>
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL convertQuaternionTo4x4Matrix (qua< T > a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL convert3x3MatrixToQuaternion (const mat< 3, 3, T > &a)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL convert4x4MatrixToQuaternion (const mat< 4, 4, T > &a)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr mat< N, N, T > GREM_VECTORCALL diagonal (vec< N, T > components)
 Create a matrix from its diagonal components.
template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL translate (vec< 2, T > translation)
 Create a translation matrix describing a 2D translation.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL rotate (T rotation)
 Create a rotation matrix describing a 2D rotation.
template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL scale (vec< 2, T > scale)
 Create a scale matrix describing a 2D scale.
template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL shear (vec< 2, T > shear)
 Create a shear matrix describing a 2D shear.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL translateRotateScale (vec< 2, T > translation, T rotation, vec< 2, T > scale)
 Create a combined translation, rotation and scale (TRS) matrix describing a 2D transformation.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL translateRotate (vec< 2, T > translation, T rotation)
 Create a combined translation and rotation matrix describing a 2D transformation.
template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL translateScale (vec< 2, T > translation, vec< 2, T > scale)
 Create a combined translation and scale matrix describing a 2D transformation.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL rotateScale (T rotation, vec< 2, T > scale)
 Create a combined rotation and scale matrix describing a 2D transformation.
template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL translate (vec< 3, T > translation)
 Create a translation matrix describing a 3D translation.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL rotate (qua< T > rotation)
 Create a rotation matrix describing a 3D rotation.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL rotate (vec< 3, T > pitchYawRollAngles)
 Create a rotation matrix describing a 3D rotation from rotation angles.
template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL scale (vec< 3, T > scale)
 Create a scale matrix describing a 3D scale.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL translateRotateScale (vec< 3, T > translation, qua< T > rotation, vec< 3, T > scale)
 Create a combined translation, rotation and scale (TRS) matrix describing a 3D transformation.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL translateRotate (vec< 3, T > translation, qua< T > rotation)
 Create a combined translation and rotation matrix describing a 3D transformation.
template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL translateScale (vec< 3, T > translation, vec< 3, T > scale)
 Create a combined translation and scale matrix describing a 3D transformation.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL rotateScale (qua< T > rotation, vec< 3, T > scale)
 Create a combined rotation and scale matrix describing a 3D transformation.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL lookAt (vec< 3, T > eye, vec< 3, T > target, vec< 3, T > up)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL ortho (T left, T right, T bottom, T top)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL ortho (T left, T right, T bottom, T top, T nearZ, T farZ)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL frustum (T left, T right, T bottom, T top, T nearZ, T farZ)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL perspective (T verticalFieldOfView, T aspectRatio, T nearZ, T farZ)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL infinitePerspective (T verticalFieldOfView, T aspectRatio, T nearZ)
template<typename T>
requires (floating_point<T>)
DecomposeTranslationRotationScaleResult< 2, T > decomposeTranslationRotationScale (const mat< 3, 3, T > &a)
 Decompose a combined translation, rotation and scale (TRS) matrix describing a 2D transformation into its components.
template<typename T>
requires (floating_point<T>)
DecomposeTranslationRotationScaleResult< 3, T > decomposeTranslationRotationScale (const mat< 4, 4, T > &a)
 Decompose a combined translation, rotation and scale (TRS) matrix describing a 3D transformation into its components.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL getAngle (qua< T > orientation)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL getAxis (qua< T > orientation)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL getPitch (qua< T > orientation)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL getYaw (qua< T > orientation)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL getRoll (qua< T > orientation)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL getPitchYawRoll (qua< T > orientation)
template<typename T>
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL rotation (vec< 3, T > from, vec< 3, T > to)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL quatLookAt (vec< 3, T > direction, vec< 3, T > up)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL angleAxis (T angle, vec< 3, T > axis)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL pitch (T angle)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL yaw (T angle)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL roll (T angle)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL convertAnglesToQuaternion (T pitchAngle, T yawAngle, T rollAngle)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL convertAnglesToQuaternion (vec< 3, T > pitchYawRollAngles)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL convertXDirectionToRollAngle (vec< 2, T > x)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL convertYDirectionToRollAngle (vec< 2, T > y)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL convertZDirectionToPitchYawAngles (vec< 3, T > z)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL convertRollAngleToXDirection (T rollAngle)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL convertRollAngleToYDirection (T rollAngle)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL convertPitchYawAnglesToZDirection (T pitchAngle, T yawAngle)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL convertAnglesToForwardDirection (T rollAngle)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL convertAnglesToForwardDirection (vec< 2, T > pitchYawAngles)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL convertAnglesToForwardDirection (vec< 3, T > pitchYawRollAngles)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL convertForwardDirectionToAngles (vec< 2, T > forward)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL convertForwardDirectionToAngles (vec< 3, T > forward)
template<typename T>
T getAngleDifference (T a, T b)
 Get the smallest signed angle between two absolute angles.
template<typename T>
T getAngleDifferenceAroundAxis (vec< 3, T > axis, vec< 3, T > a, vec< 3, T > b)
 Get the smallest signed angle around an axis between two relative vectors.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL convertDegreesToRadians (T angleInDegrees)
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL convertDegreesToRadians (vec< N, T > angleInDegrees)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL convertRadiansToDegrees (T angleInRadians)
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL convertRadiansToDegrees (vec< N, T > angleInRadians)
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 1, bool > GREM_VECTORCALL isfinite (const vec< 1, T > &values)
 Check if each component of a vector is finite.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, bool > GREM_VECTORCALL isfinite (const vec< 2, T > &values)
 Check if each component of a vector is finite.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, bool > GREM_VECTORCALL isfinite (const vec< 3, T > &values)
 Check if each component of a vector is finite.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 4, bool > GREM_VECTORCALL isfinite (const vec< 4, T > &values)
 Check if each component of a vector is finite.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 1, bool > GREM_VECTORCALL isinf (const vec< 1, T > &values)
 Check if each component of a vector is infinity.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, bool > GREM_VECTORCALL isinf (const vec< 2, T > &values)
 Check if each component of a vector is infinity.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, bool > GREM_VECTORCALL isinf (const vec< 3, T > &values)
 Check if each component of a vector is infinity.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 4, bool > GREM_VECTORCALL isinf (const vec< 4, T > &values)
 Check if each component of a vector is infinity.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 1, bool > GREM_VECTORCALL isnan (const vec< 1, T > &values)
 Check if each component of a vector is NaN (not a number).
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, bool > GREM_VECTORCALL isnan (const vec< 2, T > &values)
 Check if each component of a vector is NaN (not a number).
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, bool > GREM_VECTORCALL isnan (const vec< 3, T > &values)
 Check if each component of a vector is NaN (not a number).
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 4, bool > GREM_VECTORCALL isnan (const vec< 4, T > &values)
 Check if each component of a vector is NaN (not a number).
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< N, bool > GREM_VECTORCALL signbit (vec< N, T > values)
 Get the sign bits of the components of a vector.
template<typename T>
requires (floating_point<T> || strict_signed_integral<T>)
GREM_ALWAYS_INLINE T copysign (T magnitude, T sign)
 Get a value with the sign of a different value.
template<size_t N, typename T>
requires (requires(const size_t i) { copysign(magnitudes[i], signs[i]); })
GREM_ALWAYS_INLINE vec< N, T > copysign (vec< N, T > magnitudes, vec< N, T > signs)
 Get a vector with the signs of a different vector.
template<typename T>
requires (floating_point<T> || strict_signed_integral<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL step (T edge, T value)
 Evaluate a step function with a given edge value.
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { step(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL step (vec< N, T > edges, vec< N, T > values)
 Evaluate component-wise step functions with a given vector of edge values.
template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { step(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL step (T edge, vec< N, T > values)
 Evaluate a component-wise step function with a given edge value.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL smoothstep (T edge0, T edge1, T value)
 Perform Hermite interpolation between two edge values.
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const vec<N, T> z, const size_t i) { smoothstep(x[i], y[i], z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL smoothstep (vec< N, T > edges0, vec< N, T > edges1, vec< N, T > values)
 Perform component-wise Hermite interpolation between two vectors of edge values.
template<size_t N, typename T>
requires (requires(const T x, const T y, const vec<N, T> z, const size_t i) { smoothstep(x, y, z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL smoothstep (T edge0, T edge1, vec< N, T > values)
 Perform component-wise Hermite interpolation between two edge values.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL lerp (T a, T b, T alpha)
 Perform linear interpolation (lerp) between two values.
template<size_t N, typename T, typename Alpha>
requires (requires(const vec<N, T> x, const vec<N, T> y, const Alpha z, const size_t i) { lerp(x[i], y[i], z); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL lerp (vec< N, T > a, vec< N, T > b, Alpha alpha)
 Perform linear interpolation (lerp) between two vectors.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > lerp (qua< T > a, qua< T > b, T alpha)
 Perform linear interpolation (lerp) between two quaternions.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL unlerp (T value, T minValue, T maxValue)
 Linearly convert a value from a specific range to the [0, 1] range.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > slerp (qua< T > a, qua< T > b, T alpha)
 Perform spherical linear interpolation (slerp) between two quaternions.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL mix (T a, T b, T alpha)
 Blend between two values based on an alpha value.
template<size_t N, typename T, typename Alpha>
requires (requires(const vec<N, T> x, const vec<N, T> y, const Alpha z, const size_t i) { mix(x[i], y[i], z); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL mix (vec< N, T > a, vec< N, T > b, Alpha alpha)
 Blend between values from two vectors based on an alpha value.
template<size_t N, typename T, typename Alpha>
requires (requires(const vec<N, T> x, const vec<N, T> y, const Alpha z, const size_t i) { mix(x[i], y[i], z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL mix (vec< N, T > a, vec< N, T > b, vec< N, Alpha > alphas)
 Blend between values from two vectors based on a vector of alpha values.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > mix (qua< T > a, qua< T > b, T alpha)
 Blend between two quaternions based on an alpha value.
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > rotate90DegreesCounterclockwise (vec< 2, T > a)
 Get a 2D vector rotated 90 degrees counterclockwise.
template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > rotate90DegreesClockwise (vec< 2, T > a)
 Get a 2D vector rotated 90 degrees clockwise.
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > flipX (vec< N, T > a)
 Get a vector flipped along the X axis.
template<size_t N, typename T>
requires (N >= 2)
GREM_ALWAYS_INLINE constexpr vec< N, T > flipY (vec< N, T > a)
 Get a vector flipped along the Y axis.
template<size_t N, typename T>
requires (N >= 3)
GREM_ALWAYS_INLINE constexpr vec< N, T > flipZ (vec< N, T > a)
 Get a vector flipped along the Z axis.
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > reflect (vec< N, T > a, vec< N, T > normal)
 Get a vector reflected against a plane with a given normal vector.
template<typename T>
requires (floating_point<T> || strict_signed_integral<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL flipSignIf (T value, bool flip)
 Get a value with its sign flipped if a boolean is true.
template<size_t N, typename T>
requires (requires(const vec<N, T> x, const bool y, const size_t i) { flipSignIf(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL flipSignIf (vec< N, T > value, bool flip)
 Get a vector with its sign flipped if a boolean is true.
template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T clampLength (T value, T maxLength)
 Get a value with the same sign as a given value, but whose magnitude has been clamped to a maximum length.
template<size_t N, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > clampLength (vec< N, T > vector, T maxLength)
 Get a vector with the same direction as a given vector, but whose magnitude has been clamped to a maximum length.
template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T moveTowards (T value, T targetValue, T delta)
 Move a value linearly towards a target by some distance, without overshoot.
template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > moveTowards (vec< N, T > value, vec< N, T > targetValue, T delta)
 Move a vector linearly towards a target by some distance, without overshoot.
template<typename T, typename Frequency, typename Duration>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T expDecay (T value, T targetValue, Frequency decayRate, Duration deltaTime)
 Exponentially decay a value towards a target value over a given time.
template<size_t N, typename T, typename Frequency, typename Duration>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > expDecay (vec< N, T > value, vec< N, T > targetValue, Frequency decayRate, Duration deltaTime)
 Exponentially decay a vector towards a target vector over a given time.
template<typename T, typename Frequency, typename Duration>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T expDecay (T value, Frequency decayRate, Duration deltaTime)
 Exponentially decay a value towards zero over a given time.
template<size_t N, typename T, typename Frequency, typename Duration>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > expDecay (vec< N, T > value, Frequency decayRate, Duration deltaTime)
 Exponentially decay a vector towards zero over a given time.
constexpr ProfileFormats operator~ (ProfileFormat a) noexcept
 Get the complement of a profile format.
constexpr ProfileFormats operator| (ProfileFormat a, ProfileFormat b) noexcept
 Get the union of two profile formats.
GREM_ALWAYS_INLINE void atomicThreadFence (MemoryOrder order) noexcept
GREM_ALWAYS_INLINE void atomicSignalFence (MemoryOrder order) noexcept
template<typename T>
GREM_ALWAYS_INLINE T killDependency (T y) noexcept
template<typename Lockable1, typename Lockable2, typename... LockableN>
GREM_ALWAYS_INLINE void lock (Lockable1 &lock1, Lockable2 &lock2, LockableN &... lockN)
GREM_ALWAYS_INLINE void yield () noexcept
template<typename Rep, typename Period>
GREM_ALWAYS_INLINE void sleepFor (const DurationBase< Rep, Period > &duration) noexcept
template<typename Clock, typename Duration>
GREM_ALWAYS_INLINE void sleepUntil (const TimePointBase< Clock, Duration > &time) noexcept
template<typename Timer, typename DeltaTime>
constexpr bool countdown (Timer &timer, DeltaTime deltaTime)
 Subtract time from a time value and then check if it reached 0.
template<typename Timer, typename DeltaTime, typename TargetTime>
constexpr bool countdown (Timer &timer, DeltaTime deltaTime, TargetTime targetTime)
 Subtract time from a time value and then check if it reached a given target time value.
template<typename Timer, typename DeltaTime, typename TargetTime>
constexpr bool countup (Timer &timer, DeltaTime deltaTime, TargetTime targetTime)
 Add time to a time value and then check if it reached a given target time value.
template<typename Timer, typename DeltaTime, typename Interval>
constexpr size_t countdownLoop (Timer &timer, DeltaTime deltaTime, Interval interval)
 Subtract time from a time value and then check how many times it reached 0 while looping back to a given time interval.
template<typename Timer, typename DeltaTime, typename Interval>
constexpr size_t countupLoop (Timer &timer, DeltaTime deltaTime, Interval interval)
 Add time to a time value and then check how many times it reached a given time interval while looping back to 0.
template<typename Timer, typename DeltaTime, typename Interval>
constexpr size_t countdownLoop (Timer &timer, DeltaTime deltaTime, Interval interval, bool active)
 Update a countdown loop with a boolean trigger that determines whether the loop is active or not.
template<typename Timer, typename DeltaTime, typename Interval>
constexpr size_t countupLoop (Timer &timer, DeltaTime deltaTime, Interval interval, bool active)
 Update a countup loop with a boolean trigger that determines whether the loop is active or not.
const char * getVersionName () noexcept
 Get the current version string of the library.
uint32_t getMajorVersion () noexcept
 Get the current major version number of the library.
uint32_t getMinorVersion () noexcept
 Get the current minor version number of the library.
uint32_t getPatchVersion () noexcept
 Get the current patch version number of the library.
uint32_t getABIVersion () noexcept
 Get the current ABI version number of the library.

Variables

constexpr EqualTo EQUAL_TO {}
constexpr NotEqualTo NOT_EQUAL_TO {}
constexpr LessThan LESS_THAN {}
constexpr LessThanOrEqualTo LESS_THAN_OR_EQUAL_TO {}
constexpr GreaterThan GREATER_THAN {}
constexpr GreaterThanOrEqualTo GREATER_THAN_OR_EQUAL_TO {}
constexpr Add ADD {}
constexpr Subtract SUBTRACT {}
constexpr Multiply MULTIPLY {}
constexpr Divide DIVIDE {}
constexpr Modulo MODULO {}
constexpr Negate NEGATE {}
template<typename T, typename B>
constexpr bool linear_buffer_has_alternative_v = linear_buffer_has_alternative<T, B>::value
template<typename T, typename B>
constexpr std::size_t linear_buffer_index_v = linear_buffer_index<T, B>::value
template<typename B>
constexpr std::size_t linear_buffer_size_v = linear_buffer_size<B>::value
constexpr Nullopt nullopt {0}
 Unit value representing an empty Optional.
constexpr std::size_t DYNAMIC_EXTENT = static_cast<std::size_t>(-1)
constexpr std::size_t DYNAMIC_STRIDE = static_cast<std::size_t>(-1)
constexpr Ignore ignore {}
template<typename T, typename V>
constexpr bool variant_has_alternative_v = variant_has_alternative<T, V>::value
 Check if a variant type has a given type as one of its possible alternatives.
template<typename T, typename V>
constexpr std::size_t variant_index_v = variant_index<T, V>::value
 Get the index of the variant alternative with a given type in a variant type.
template<typename V>
constexpr std::size_t variant_size_v = variant_size<V>::value
 Get the number of alternative types of a variant type.
constexpr size_t BYTE_BITS = CHAR_BIT
constexpr bool16_t false16 {false}
constexpr bool16_t true16 {true}
constexpr bool32_t false32 {false}
constexpr bool32_t true32 {true}
constexpr bool64_t false64 {false}
constexpr bool64_t true64 {true}
constexpr bool HOST_IS_LITTLE_ENDIAN = std::endian::native == std::endian::little
 Whether the host system's native byte order is little-endian or not.
constexpr bool HOST_IS_BIG_ENDIAN = std::endian::native == std::endian::big
 Whether the host system's native byte order is big-endian or not.
constexpr DeferLock DEFER_LOCK {}
constexpr TryToLock TRY_TO_LOCK {}
constexpr AdoptLock ADOPT_LOCK {}

Typedef Documentation

◆ iterator_t

template<typename T>
using grem::iterator_t = decltype(std::begin(std::declval<T&>()))

◆ const_iterator_t

template<typename T>
using grem::const_iterator_t = decltype(std::cbegin(std::declval<T&>()))

◆ sentinel_t

template<typename T>
using grem::sentinel_t = decltype(std::end(std::declval<T&>()))

◆ const_sentinel_t

template<typename T>
using grem::const_sentinel_t = decltype(std::cend(std::declval<T&>()))

◆ range_value_t

template<typename T>
using grem::range_value_t = iter_value_t<iterator_t<T>>

◆ range_reference_t

template<typename T>
using grem::range_reference_t = iter_reference_t<iterator_t<T>>

◆ range_difference_t

template<typename T>
using grem::range_difference_t = iter_difference_t<iterator_t<T>>

◆ range_rvalue_reference_t

template<typename T>
using grem::range_rvalue_reference_t = iter_rvalue_reference_t<iterator_t<T>>

◆ range_common_reference_t

template<typename T>
using grem::range_common_reference_t = iter_common_reference_t<iterator_t<T>>

◆ range_size_t

template<typename T>
using grem::range_size_t = decltype(std::size(std::declval<T&>()))

◆ Any

using grem::Any = AnyBase<void>

Type-erased semi-regular value wrapper.

◆ BitBuffer

◆ ConvexPolytopeVertexIndex

Index of a vertex in a convex polytope.

◆ ConvexPolytopeEdgeIndex

Index of an edge in a convex polytope.

◆ ConvexPolytopeFaceIndex

Index of a face in a convex polytope.

◆ ConvexPolytopeVertex

template<size_t N, typename Scalar>
using grem::ConvexPolytopeVertex = vec<N, Scalar>

Vertex of a convex polytope.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).
Scalarscalar coordinate component type.

◆ CStringView

using grem::CStringView = CStringViewBase<char, std::char_traits<char>>

◆ UTF8CStringView

using grem::UTF8CStringView = CStringViewBase<char8_t, std::char_traits<char8_t>>

◆ UTF16CStringView

using grem::UTF16CStringView = CStringViewBase<char16_t, std::char_traits<char16_t>>

◆ UTF32CStringView

using grem::UTF32CStringView = CStringViewBase<char32_t, std::char_traits<char32_t>>

◆ WCStringView

using grem::WCStringView = CStringViewBase<wchar_t, std::char_traits<wchar_t>>

◆ DoublyLinkedList

template<typename T, typename Allocator = std::allocator<T>>
using grem::DoublyLinkedList = std::list<T, Allocator>

◆ Function

template<typename Signature>
using grem::Function = std::function<Signature>

◆ BoundingVolumeHierarchy2D

template<typename Scalar, typename T>
using grem::BoundingVolumeHierarchy2D = LinearBoundingVolumeHierarchy<2, Scalar, T>

Binary tree-based space subdivision container, optimized for intersection queries between 2D axis-aligned boxes.

Template Parameters
Scalarscalar type of the axis-aligned boxes stored in the tree.
Ttype of element to store in the tree.

◆ BoundingVolumeHierarchy3D

template<typename Scalar, typename T>
using grem::BoundingVolumeHierarchy3D = LinearBoundingVolumeHierarchy<3, Scalar, T>

Binary tree-based space subdivision container, optimized for intersection queries between 3D axis-aligned boxes.

Template Parameters
Scalarscalar type of the axis-aligned boxes stored in the tree.
Ttype of element to store in the tree.

◆ linear_buffer_alternative_t

template<std::size_t Index, typename B>
using grem::linear_buffer_alternative_t = typename linear_buffer_alternative<Index, B>::type

◆ LooseQuadtreeID

Opaque handle to an element in a LooseQuadtree.

◆ LooseQuadtree

template<typename Scalar, typename T>
using grem::LooseQuadtree = LooseOrthtree<2, Scalar, T>

Quadtree-based space subdivision container, optimized for intersection queries between 2D axis-aligned boxes.

Template Parameters
Scalarscalar type of the axis-aligned boxes stored in the tree.
Ttype of element to store in the tree.

◆ LooseOctreeID

Opaque handle to an element in a LooseOctree.

◆ LooseOctree

template<typename Scalar, typename T>
using grem::LooseOctree = LooseOrthtree<3, Scalar, T>

Octree-based space subdivision container, optimized for intersection queries between 3D axis-aligned boxes.

Template Parameters
Scalarscalar type of the axis-aligned boxes stored in the tree.
Ttype of element to store in the tree.

◆ PriorityQueue

template<typename T, typename Container = ArrayList<T, std::allocator<T>>, typename Compare = std::less<typename Container::value_type>>
using grem::PriorityQueue = std::priority_queue<T, Container, Compare>

◆ SinglyLinkedList

template<typename T, typename Allocator = std::allocator<T>>
using grem::SinglyLinkedList = std::forward_list<T, Allocator>

◆ StringBase

template<typename CharT, typename Traits = std::char_traits<CharT>, typename Allocator = std::allocator<CharT>>
using grem::StringBase = std::basic_string<CharT, Traits, Allocator>

◆ String

using grem::String = StringBase<char, std::char_traits<char>, std::allocator<char>>

◆ UTF8String

using grem::UTF8String = StringBase<char8_t, std::char_traits<char8_t>, std::allocator<char8_t>>

◆ UTF16String

using grem::UTF16String = StringBase<char16_t, std::char_traits<char16_t>, std::allocator<char16_t>>

◆ UTF32String

using grem::UTF32String = StringBase<char32_t, std::char_traits<char32_t>, std::allocator<char32_t>>

◆ WString

using grem::WString = StringBase<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>>

◆ StringPool

◆ StringViewBase

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::StringViewBase = std::basic_string_view<CharT, Traits>

◆ StringView

using grem::StringView = StringViewBase<char, std::char_traits<char>>

◆ UTF8StringView

using grem::UTF8StringView = StringViewBase<char8_t, std::char_traits<char8_t>>

◆ UTF16StringView

using grem::UTF16StringView = StringViewBase<char16_t, std::char_traits<char16_t>>

◆ UTF32StringView

using grem::UTF32StringView = StringViewBase<char32_t, std::char_traits<char32_t>>

◆ WStringView

using grem::WStringView = StringViewBase<wchar_t, std::char_traits<wchar_t>>

◆ TriangleMeshVertex

template<size_t N, typename Scalar>
using grem::TriangleMeshVertex = vec<N, Scalar>

Vertex in a triangle mesh.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).
Scalarscalar coordinate component type.

◆ TriangleMeshVertexIndex

Index of a vertex in a triangle mesh.

◆ TriangleMeshFaceIndex

using grem::TriangleMeshFaceIndex = uint32_t

Index of a triangle in a triangle mesh, equal to the index of the first vertex index divided by 3.

◆ variant_alternative_t

template<std::size_t Index, typename V>
using grem::variant_alternative_t = typename variant_alternative<Index, V>::type

Get the type of the variant alternative with a given index in a variant type.

Template Parameters
Indexindex of the variant alternative type to get.
Vvariant type.

◆ DebugFormatString

template<typename... Args>
using grem::DebugFormatString = DebugFormatStringBase<std::type_identity_t<Args>...>

◆ Offset2D

using grem::Offset2D = Offset<2>

Offset in a 2D data region.

◆ Offset3D

using grem::Offset3D = Offset<3>

Offset in a 3D data region.

◆ Extent2D

using grem::Extent2D = Extent<2>

Size of a 2D data region.

◆ Extent3D

using grem::Extent3D = Extent<3>

Size of a 3D data region.

◆ Region2D

using grem::Region2D = Region<2>

Rectangular region of 2D data.

◆ Region3D

using grem::Region3D = Region<3>

Rectangular region of 3D data.

◆ FormatArguments

◆ FormatString

template<typename... Args>
using grem::FormatString = FormatStringBase<std::type_identity_t<Args>...>

◆ ssize_t

using grem::ssize_t = std::make_signed_t<size_t>

◆ bool8_t

using grem::bool8_t = bool

◆ float32_t

using grem::float32_t = float

◆ float64_t

using grem::float64_t = double

◆ i8norm

using grem::i8norm = detail::NormalizedInteger<int8_t>

◆ u8norm

using grem::u8norm = detail::NormalizedInteger<uint8_t>

◆ i16norm

using grem::i16norm = detail::NormalizedInteger<int16_t>

◆ u16norm

using grem::u16norm = detail::NormalizedInteger<uint16_t>

◆ Point

template<size_t N, typename T>
using grem::Point = vec<N, T>

Generic point in N-dimensional space.

Template Parameters
Nnumber of vector dimensions.
Tscalar coordinate component type.

◆ Length

template<size_t N, typename T>
using grem::Length = vec<N, T>

Generic length in N-dimensional space.

Template Parameters
Nnumber of vector dimensions.
Tscalar coordinate component type.

◆ bvec1

using grem::bvec1 = vec<1, bool>

◆ bvec2

using grem::bvec2 = vec<2, bool>

◆ bvec3

using grem::bvec3 = vec<3, bool>

◆ bvec4

using grem::bvec4 = vec<4, bool>

◆ b8vec1

using grem::b8vec1 = vec<1, bool8_t>

◆ b8vec2

using grem::b8vec2 = vec<2, bool8_t>

◆ b8vec3

using grem::b8vec3 = vec<3, bool8_t>

◆ b8vec4

using grem::b8vec4 = vec<4, bool8_t>

◆ b16vec1

using grem::b16vec1 = vec<1, bool16_t>

◆ b16vec2

using grem::b16vec2 = vec<2, bool16_t>

◆ b16vec3

using grem::b16vec3 = vec<3, bool16_t>

◆ b16vec4

using grem::b16vec4 = vec<4, bool16_t>

◆ b32vec1

using grem::b32vec1 = vec<1, bool32_t>

◆ b32vec2

using grem::b32vec2 = vec<2, bool32_t>

◆ b32vec3

using grem::b32vec3 = vec<3, bool32_t>

◆ b32vec4

using grem::b32vec4 = vec<4, bool32_t>

◆ b64vec1

using grem::b64vec1 = vec<1, bool64_t>

◆ b64vec2

using grem::b64vec2 = vec<2, bool64_t>

◆ b64vec3

using grem::b64vec3 = vec<3, bool64_t>

◆ b64vec4

using grem::b64vec4 = vec<4, bool64_t>

◆ ivec1

using grem::ivec1 = vec<1, int>

◆ ivec2

using grem::ivec2 = vec<2, int>

◆ ivec3

using grem::ivec3 = vec<3, int>

◆ ivec4

using grem::ivec4 = vec<4, int>

◆ uvec1

using grem::uvec1 = vec<1, unsigned>

◆ uvec2

using grem::uvec2 = vec<2, unsigned>

◆ uvec3

using grem::uvec3 = vec<3, unsigned>

◆ uvec4

using grem::uvec4 = vec<4, unsigned>

◆ i8vec1

using grem::i8vec1 = vec<1, int8_t>

◆ i8vec2

using grem::i8vec2 = vec<2, int8_t>

◆ i8vec3

using grem::i8vec3 = vec<3, int8_t>

◆ i8vec4

using grem::i8vec4 = vec<4, int8_t>

◆ u8vec1

using grem::u8vec1 = vec<1, uint8_t>

◆ u8vec2

using grem::u8vec2 = vec<2, uint8_t>

◆ u8vec3

using grem::u8vec3 = vec<3, uint8_t>

◆ u8vec4

using grem::u8vec4 = vec<4, uint8_t>

◆ i16vec1

using grem::i16vec1 = vec<1, int16_t>

◆ i16vec2

using grem::i16vec2 = vec<2, int16_t>

◆ i16vec3

using grem::i16vec3 = vec<3, int16_t>

◆ i16vec4

using grem::i16vec4 = vec<4, int16_t>

◆ u16vec1

using grem::u16vec1 = vec<1, uint16_t>

◆ u16vec2

using grem::u16vec2 = vec<2, uint16_t>

◆ u16vec3

using grem::u16vec3 = vec<3, uint16_t>

◆ u16vec4

using grem::u16vec4 = vec<4, uint16_t>

◆ i32vec1

using grem::i32vec1 = vec<1, int32_t>

◆ i32vec2

using grem::i32vec2 = vec<2, int32_t>

◆ i32vec3

using grem::i32vec3 = vec<3, int32_t>

◆ i32vec4

using grem::i32vec4 = vec<4, int32_t>

◆ u32vec1

using grem::u32vec1 = vec<1, uint32_t>

◆ u32vec2

using grem::u32vec2 = vec<2, uint32_t>

◆ u32vec3

using grem::u32vec3 = vec<3, uint32_t>

◆ u32vec4

using grem::u32vec4 = vec<4, uint32_t>

◆ i64vec1

using grem::i64vec1 = vec<1, int64_t>

◆ i64vec2

using grem::i64vec2 = vec<2, int64_t>

◆ i64vec3

using grem::i64vec3 = vec<3, int64_t>

◆ i64vec4

using grem::i64vec4 = vec<4, int64_t>

◆ u64vec1

using grem::u64vec1 = vec<1, uint64_t>

◆ u64vec2

using grem::u64vec2 = vec<2, uint64_t>

◆ u64vec3

using grem::u64vec3 = vec<3, uint64_t>

◆ u64vec4

using grem::u64vec4 = vec<4, uint64_t>

◆ izvec1

using grem::izvec1 = vec<1, ssize_t>

◆ izvec2

using grem::izvec2 = vec<2, ssize_t>

◆ izvec3

using grem::izvec3 = vec<3, ssize_t>

◆ izvec4

using grem::izvec4 = vec<4, ssize_t>

◆ uzvec1

using grem::uzvec1 = vec<1, size_t>

◆ uzvec2

using grem::uzvec2 = vec<2, size_t>

◆ uzvec3

using grem::uzvec3 = vec<3, size_t>

◆ uzvec4

using grem::uzvec4 = vec<4, size_t>

◆ vec1

using grem::vec1 = vec<1, float>

◆ vec2

using grem::vec2 = vec<2, float>

◆ vec3

using grem::vec3 = vec<3, float>

◆ vec4

using grem::vec4 = vec<4, float>

◆ dvec1

using grem::dvec1 = vec<1, double>

◆ dvec2

using grem::dvec2 = vec<2, double>

◆ dvec3

using grem::dvec3 = vec<3, double>

◆ dvec4

using grem::dvec4 = vec<4, double>

◆ f16vec1

◆ f16vec2

◆ f16vec3

◆ f16vec4

◆ f32vec1

◆ f32vec2

◆ f32vec3

◆ f32vec4

◆ f64vec1

◆ f64vec2

◆ f64vec3

◆ f64vec4

◆ i8vec1norm

◆ i8vec2norm

◆ i8vec3norm

◆ i8vec4norm

◆ u8vec1norm

◆ u8vec2norm

◆ u8vec3norm

◆ u8vec4norm

◆ i16vec1norm

◆ i16vec2norm

◆ i16vec3norm

◆ i16vec4norm

◆ u16vec1norm

◆ u16vec2norm

◆ u16vec3norm

◆ u16vec4norm

◆ imat1

using grem::imat1 = mat<1, 1, int>

◆ imat2

using grem::imat2 = mat<2, 2, int>

◆ imat3

using grem::imat3 = mat<3, 3, int>

◆ imat4

using grem::imat4 = mat<4, 4, int>

◆ umat1

using grem::umat1 = mat<1, 1, unsigned>

◆ umat2

using grem::umat2 = mat<2, 2, unsigned>

◆ umat3

using grem::umat3 = mat<3, 3, unsigned>

◆ umat4

using grem::umat4 = mat<4, 4, unsigned>

◆ i8mat1

using grem::i8mat1 = mat<1, 1, int8_t>

◆ i8mat2

using grem::i8mat2 = mat<2, 2, int8_t>

◆ i8mat3

using grem::i8mat3 = mat<3, 3, int8_t>

◆ i8mat4

using grem::i8mat4 = mat<4, 4, int8_t>

◆ u8mat1

using grem::u8mat1 = mat<1, 1, uint8_t>

◆ u8mat2

using grem::u8mat2 = mat<2, 2, uint8_t>

◆ u8mat3

using grem::u8mat3 = mat<3, 3, uint8_t>

◆ u8mat4

using grem::u8mat4 = mat<4, 4, uint8_t>

◆ i16mat1

using grem::i16mat1 = mat<1, 1, int16_t>

◆ i16mat2

using grem::i16mat2 = mat<2, 2, int16_t>

◆ i16mat3

using grem::i16mat3 = mat<3, 3, int16_t>

◆ i16mat4

using grem::i16mat4 = mat<4, 4, int16_t>

◆ u16mat1

using grem::u16mat1 = mat<1, 1, uint16_t>

◆ u16mat2

using grem::u16mat2 = mat<2, 2, uint16_t>

◆ u16mat3

using grem::u16mat3 = mat<3, 3, uint16_t>

◆ u16mat4

using grem::u16mat4 = mat<4, 4, uint16_t>

◆ i32mat1

using grem::i32mat1 = mat<1, 1, int32_t>

◆ i32mat2

using grem::i32mat2 = mat<2, 2, int32_t>

◆ i32mat3

using grem::i32mat3 = mat<3, 3, int32_t>

◆ i32mat4

using grem::i32mat4 = mat<4, 4, int32_t>

◆ u32mat1

using grem::u32mat1 = mat<1, 1, uint32_t>

◆ u32mat2

using grem::u32mat2 = mat<2, 2, uint32_t>

◆ u32mat3

using grem::u32mat3 = mat<3, 3, uint32_t>

◆ u32mat4

using grem::u32mat4 = mat<4, 4, uint32_t>

◆ i64mat1

using grem::i64mat1 = mat<1, 1, int64_t>

◆ i64mat2

using grem::i64mat2 = mat<2, 2, int64_t>

◆ i64mat3

using grem::i64mat3 = mat<3, 3, int64_t>

◆ i64mat4

using grem::i64mat4 = mat<4, 4, int64_t>

◆ u64mat1

using grem::u64mat1 = mat<1, 1, uint64_t>

◆ u64mat2

using grem::u64mat2 = mat<2, 2, uint64_t>

◆ u64mat3

using grem::u64mat3 = mat<3, 3, uint64_t>

◆ u64mat4

using grem::u64mat4 = mat<4, 4, uint64_t>

◆ mat1

using grem::mat1 = mat<1, 1, float>

◆ mat2

using grem::mat2 = mat<2, 2, float>

◆ mat3

using grem::mat3 = mat<3, 3, float>

◆ mat4

using grem::mat4 = mat<4, 4, float>

◆ dmat1

using grem::dmat1 = mat<1, 1, double>

◆ dmat2

using grem::dmat2 = mat<2, 2, double>

◆ dmat3

using grem::dmat3 = mat<3, 3, double>

◆ dmat4

using grem::dmat4 = mat<4, 4, double>

◆ f16mat1

using grem::f16mat1 = mat<1, 1, float16_t>

◆ f16mat2

using grem::f16mat2 = mat<2, 2, float16_t>

◆ f16mat3

using grem::f16mat3 = mat<3, 3, float16_t>

◆ f16mat4

using grem::f16mat4 = mat<4, 4, float16_t>

◆ f32mat1

using grem::f32mat1 = mat<1, 1, float32_t>

◆ f32mat2

using grem::f32mat2 = mat<2, 2, float32_t>

◆ f32mat3

using grem::f32mat3 = mat<3, 3, float32_t>

◆ f32mat4

using grem::f32mat4 = mat<4, 4, float32_t>

◆ f64mat1

using grem::f64mat1 = mat<1, 1, float64_t>

◆ f64mat2

using grem::f64mat2 = mat<2, 2, float64_t>

◆ f64mat3

using grem::f64mat3 = mat<3, 3, float64_t>

◆ f64mat4

using grem::f64mat4 = mat<4, 4, float64_t>

◆ quat

using grem::quat = qua<float>

◆ dquat

using grem::dquat = qua<float>

◆ f16quat

◆ f32quat

◆ f64quat

◆ Clock

using grem::Clock = std::chrono::steady_clock

◆ Duration

using grem::Duration = Clock::duration

◆ TimePoint

using grem::TimePoint = Clock::time_point

◆ Ratio

template<intmax_t Num, intmax_t Den = 1>
using grem::Ratio = std::ratio<Num, Den>

◆ DurationBase

template<typename Rep, typename Period = Ratio<1, 1>>
using grem::DurationBase = std::chrono::duration<Rep, Period>

◆ TimePointBase

template<typename Clock, typename Duration = typename Clock::duration>
using grem::TimePointBase = std::chrono::time_point<Clock, Duration>

◆ Hours

using grem::Hours = DurationBase<int64_t, Ratio<60 * 60, 1>>

◆ Minutes

using grem::Minutes = DurationBase<int64_t, Ratio<60, 1>>

◆ Seconds

using grem::Seconds = DurationBase<int64_t, Ratio<1, 1>>

◆ Milliseconds

using grem::Milliseconds = DurationBase<int64_t, Ratio<1, 1'000>>

◆ Microseconds

using grem::Microseconds = DurationBase<int64_t, Ratio<1, 1'000'000>>

◆ Nanoseconds

using grem::Nanoseconds = DurationBase<int64_t, Ratio<1, 1'000'000'000>>

◆ FloatHours

using grem::FloatHours = DurationBase<float, Ratio<60 * 60, 1>>

◆ FloatMinutes

using grem::FloatMinutes = DurationBase<float, Ratio<60, 1>>

◆ FloatSeconds

using grem::FloatSeconds = DurationBase<float, Ratio<1, 1>>

◆ FloatMilliseconds

using grem::FloatMilliseconds = DurationBase<float, Ratio<1, 1'000>>

◆ FloatMicroseconds

using grem::FloatMicroseconds = DurationBase<float, Ratio<1, 1'000'000>>

◆ FloatNanoseconds

using grem::FloatNanoseconds = DurationBase<float, Ratio<1, 1'000'000'000>>

Enumeration Type Documentation

◆ SubrangeKind

enum class grem::SubrangeKind : bool
strong
Enumerator
UNSIZED 
SIZED 

◆ anonymous enum

anonymous enum : bool8_t
Enumerator
false8 
true8 

◆ ProfileFormat

enum class grem::ProfileFormat : uint8_t
strong

Format to save profile data in.

Enumerator
BINARY 

Generic binary format.

JSON 

Generic JSON format.

TRACE_EVENT_FORMAT 

Trace Event Format compatible with Perfetto and Chromium's about:tracing.

◆ MemoryOrder

enum class grem::MemoryOrder : int
strong
Enumerator
RELAXED 
CONSUME 
ACQUIRE 
RELEASE 
ACQUIRE_RELEASE 
SEQUENTIALLY_CONSISTENT 

Function Documentation

◆ combineHashes()

std::size_t grem::combineHashes ( std::size_t hash,
convertible_to< std::size_t > auto... otherHashes )
nodiscardconstexpr

◆ getHash()

template<typename T, typename... Ts>
std::size_t grem::getHash ( const T & value,
const Ts &... otherValues )
nodiscardconstexpr

◆ getRangeHash()

std::size_t grem::getRangeHash ( input_range auto && range)
nodiscardconstexpr

◆ iterSwap()

void grem::iterSwap ( auto itA,
auto itB )
constexpr

◆ swapRanges()

void grem::swapRanges ( input_range auto && rangeA,
input_range auto && rangeB )
constexpr

◆ forEach()

void grem::forEach ( input_range auto && range,
auto operation )
constexpr

◆ transform() [1/2]

auto grem::transform ( input_range auto && range,
auto outputIterator,
auto transformationFunction )
constexpr

◆ transform() [2/2]

auto grem::transform ( input_range auto && rangeA,
input_range auto && rangeB,
auto outputIterator,
auto transformationFunction )
constexpr

◆ accumulate() [1/2]

auto grem::accumulate ( input_range auto && range,
auto initialValue )
nodiscardconstexpr

◆ accumulate() [2/2]

auto grem::accumulate ( input_range auto && range,
auto initialValue,
auto reductionFunction )
nodiscardconstexpr

◆ reduce() [1/3]

auto grem::reduce ( input_range auto && range)
nodiscardconstexpr

◆ reduce() [2/3]

auto grem::reduce ( input_range auto && range,
auto initialValue )
nodiscardconstexpr

◆ reduce() [3/3]

auto grem::reduce ( input_range auto && range,
auto initialValue,
auto reductionFunction )
nodiscardconstexpr

◆ anyOf()

bool grem::anyOf ( input_range auto && range,
auto predicate )
nodiscardconstexpr

◆ allOf()

bool grem::allOf ( input_range auto && range,
auto predicate )
nodiscardconstexpr

◆ noneOf()

bool grem::noneOf ( input_range auto && range,
auto predicate )
nodiscardconstexpr

◆ count()

auto grem::count ( input_range auto && range,
const auto & value )
nodiscardconstexpr

◆ countIf()

auto grem::countIf ( input_range auto && range,
auto predicate )
nodiscardconstexpr

◆ find()

auto grem::find ( input_range auto && range,
const auto & value )
nodiscardconstexpr

◆ findBy()

template<auto Member>
auto grem::findBy ( input_range auto && range,
const auto & value )
nodiscardconstexpr

◆ findIf()

auto grem::findIf ( input_range auto && range,
auto predicate )
nodiscardconstexpr

◆ findIfNot()

auto grem::findIfNot ( input_range auto && range,
auto predicate )
nodiscardconstexpr

◆ findFirstOf() [1/2]

auto grem::findFirstOf ( input_range auto && range,
forward_range auto && values )
nodiscardconstexpr

◆ findFirstOf() [2/2]

auto grem::findFirstOf ( input_range auto && range,
forward_range auto && values,
auto equal )
nodiscardconstexpr

◆ findEnd() [1/2]

auto grem::findEnd ( forward_range auto && range,
forward_range auto && values )
nodiscardconstexpr

◆ findEnd() [2/2]

auto grem::findEnd ( forward_range auto && range,
forward_range auto && values,
auto equal )
nodiscardconstexpr

◆ search() [1/2]

auto grem::search ( forward_range auto && range,
forward_range auto && sequence )
nodiscardconstexpr

◆ search() [2/2]

auto grem::search ( forward_range auto && range,
forward_range auto && sequence,
auto equal )
nodiscardconstexpr

◆ mismatch() [1/2]

auto grem::mismatch ( input_range auto && range,
input_range auto && sequence )
nodiscardconstexpr

◆ mismatch() [2/2]

auto grem::mismatch ( input_range auto && range,
input_range auto && sequence,
auto equal )
nodiscardconstexpr

◆ adjacentFind() [1/2]

auto grem::adjacentFind ( forward_range auto && range)
nodiscardconstexpr

◆ adjacentFind() [2/2]

auto grem::adjacentFind ( forward_range auto && range,
auto equal )
nodiscardconstexpr

◆ contains() [1/2]

bool grem::contains ( input_range auto && range,
const auto & value )
nodiscardconstexpr

◆ containsBy()

template<auto Member>
auto grem::containsBy ( input_range auto && range,
const auto & value )
nodiscardconstexpr

◆ contains() [2/2]

bool grem::contains ( input_range auto && range,
const auto & value,
auto equal )
nodiscardconstexpr

◆ containsSubrange() [1/2]

bool grem::containsSubrange ( forward_range auto && range,
forward_range auto && sequence )
nodiscardconstexpr

◆ containsSubrange() [2/2]

bool grem::containsSubrange ( forward_range auto && range,
forward_range auto && sequence,
auto equal )
nodiscardconstexpr

◆ startsWith() [1/2]

bool grem::startsWith ( input_range auto && range,
input_range auto && sequence )
nodiscardconstexpr

◆ startsWith() [2/2]

bool grem::startsWith ( input_range auto && range,
input_range auto && sequence,
auto equal )
nodiscardconstexpr

◆ endsWith() [1/2]

bool grem::endsWith ( input_range auto && range,
input_range auto && sequence )
nodiscardconstexpr

◆ endsWith() [2/2]

bool grem::endsWith ( input_range auto && range,
input_range auto && sequence,
auto equal )
nodiscardconstexpr

◆ equal() [1/4]

bool grem::equal ( input_range auto && rangeA,
input_range auto && rangeB )
nodiscardconstexpr

◆ equal() [2/4]

bool grem::equal ( input_range auto && rangeA,
input_range auto && rangeB,
auto equal )
nodiscardconstexpr

◆ lexicographicalCompare() [1/2]

bool grem::lexicographicalCompare ( input_range auto && rangeA,
input_range auto && rangeB )
nodiscardconstexpr

◆ lexicographicalCompare() [2/2]

bool grem::lexicographicalCompare ( input_range auto && rangeA,
input_range auto && rangeB,
auto compare )
nodiscardconstexpr

◆ minElement() [1/2]

auto grem::minElement ( forward_range auto && range)
nodiscardconstexpr

◆ minElement() [2/2]

auto grem::minElement ( forward_range auto && range,
auto compare )
nodiscardconstexpr

◆ maxElement() [1/2]

auto grem::maxElement ( forward_range auto && range)
nodiscardconstexpr

◆ maxElement() [2/2]

auto grem::maxElement ( forward_range auto && range,
auto compare )
nodiscardconstexpr

◆ minmaxElement() [1/2]

auto grem::minmaxElement ( forward_range auto && range)
nodiscardconstexpr

◆ minmaxElement() [2/2]

auto grem::minmaxElement ( forward_range auto && range,
auto compare )
nodiscardconstexpr

◆ isSorted() [1/2]

bool grem::isSorted ( forward_range auto && range)
nodiscardconstexpr

◆ isSorted() [2/2]

bool grem::isSorted ( forward_range auto && range,
auto compare )
nodiscardconstexpr

◆ isPartitioned()

bool grem::isPartitioned ( input_range auto && range,
auto compare )
nodiscardconstexpr

◆ includes() [1/2]

bool grem::includes ( input_range auto && sortedRange,
input_range auto && sortedSequence )
nodiscardconstexpr

◆ includes() [2/2]

bool grem::includes ( input_range auto && sortedRange,
input_range auto && sortedSequence,
auto compare )
nodiscardconstexpr

◆ binarySearch() [1/2]

bool grem::binarySearch ( forward_range auto && sortedRange,
const auto & value )
nodiscardconstexpr

◆ binarySearch() [2/2]

bool grem::binarySearch ( forward_range auto && sortedRange,
const auto & value,
auto compare )
nodiscardconstexpr

◆ lowerBound() [1/2]

auto grem::lowerBound ( forward_range auto && sortedRange,
const auto & value,
auto compare )
nodiscardconstexpr

◆ lowerBound() [2/2]

auto grem::lowerBound ( forward_range auto && sortedRange,
const auto & value )
nodiscardconstexpr

◆ upperBound() [1/2]

auto grem::upperBound ( forward_range auto && sortedRange,
const auto & value )
nodiscardconstexpr

◆ upperBound() [2/2]

auto grem::upperBound ( forward_range auto && sortedRange,
const auto & value,
auto compare )
nodiscardconstexpr

◆ equalRange() [1/2]

auto grem::equalRange ( forward_range auto && sortedRange,
const auto & value,
auto compare )
nodiscardconstexpr

◆ equalRange() [2/2]

auto grem::equalRange ( forward_range auto && sortedRange,
const auto & value )
nodiscardconstexpr

◆ partitionPoint()

auto grem::partitionPoint ( forward_range auto && partitionedRange,
auto compare )
nodiscardconstexpr

◆ merge() [1/2]

auto grem::merge ( input_range auto && sortedRangeA,
input_range auto && sortedRangeB,
auto outputIterator )
constexpr

◆ merge() [2/2]

auto grem::merge ( input_range auto && sortedRangeA,
input_range auto && sortedRangeB,
auto outputIterator,
auto compare )
constexpr

◆ inplaceMerge() [1/2]

auto grem::inplaceMerge ( bidirectional_range auto && sortedRange,
auto middleIterator )
constexpr

◆ inplaceMerge() [2/2]

auto grem::inplaceMerge ( bidirectional_range auto && sortedRange,
auto middleIterator,
auto compare )
constexpr

◆ sort() [1/2]

void grem::sort ( random_access_range auto && range)
constexpr

◆ sort() [2/2]

void grem::sort ( random_access_range auto && range,
auto compare )
constexpr

◆ sortByAscending()

template<auto... Members>
void grem::sortByAscending ( random_access_range auto && range)
constexpr

◆ sortByDescending()

template<auto... Members>
void grem::sortByDescending ( random_access_range auto && range)
constexpr

◆ stableSort() [1/2]

void grem::stableSort ( random_access_range auto && range)
constexpr

◆ stableSort() [2/2]

void grem::stableSort ( random_access_range auto && range,
auto compare )
constexpr

◆ stableSortByAscending()

template<auto... Members>
void grem::stableSortByAscending ( random_access_range auto && range)
constexpr

◆ stableSortByDescending()

template<auto... Members>
void grem::stableSortByDescending ( random_access_range auto && range)
constexpr

◆ partialSort() [1/2]

void grem::partialSort ( random_access_range auto && range,
auto middleIterator )
constexpr

◆ partialSort() [2/2]

void grem::partialSort ( random_access_range auto && range,
auto middleIterator,
auto compare )
constexpr

◆ partialSortCopy() [1/2]

auto grem::partialSortCopy ( input_range auto && range,
random_access_range auto && outputRange )
constexpr

◆ partialSortCopy() [2/2]

auto grem::partialSortCopy ( input_range auto && range,
random_access_range auto && outputRange,
auto compare )
constexpr

◆ partition()

auto grem::partition ( forward_range auto && range,
auto predicate )
constexpr

◆ stablePartition()

auto grem::stablePartition ( bidirectional_range auto && range,
auto predicate )
constexpr

◆ partitionCopy()

auto grem::partitionCopy ( input_range auto && range,
auto trueOutputIterator,
auto falseOutputIterator,
auto predicate )
constexpr

◆ nthElement() [1/2]

auto grem::nthElement ( random_access_range auto && range,
auto nthIterator )
constexpr

◆ nthElement() [2/2]

auto grem::nthElement ( random_access_range auto && range,
auto nthIterator,
auto compare )
constexpr

◆ unique() [1/2]

auto grem::unique ( forward_range auto && range)
constexpr

◆ unique() [2/2]

auto grem::unique ( forward_range auto && range,
auto equal )
constexpr

◆ uniqueCopy() [1/2]

auto grem::uniqueCopy ( input_range auto && range,
auto outputIterator )
constexpr

◆ uniqueCopy() [2/2]

auto grem::uniqueCopy ( input_range auto && range,
auto outputIterator,
auto equal )
constexpr

◆ remove()

auto grem::remove ( forward_range auto && range,
const auto & value )
constexpr

◆ removeIf()

auto grem::removeIf ( forward_range auto && range,
auto predicate )
constexpr

◆ removeCopy()

auto grem::removeCopy ( input_range auto && range,
auto outputIterator,
const auto & value )
constexpr

◆ removeCopyIf()

auto grem::removeCopyIf ( input_range auto && range,
auto outputIterator,
auto predicate )
constexpr

◆ replace()

auto grem::replace ( forward_range auto && range,
const auto & oldValue,
const auto & newValue )
constexpr

◆ replaceIf()

auto grem::replaceIf ( forward_range auto && range,
auto predicate,
const auto & newValue )
constexpr

◆ replaceCopy()

auto grem::replaceCopy ( input_range auto && range,
auto outputIterator,
const auto & oldValue,
const auto & newValue )
constexpr

◆ replaceCopyIf()

auto grem::replaceCopyIf ( input_range auto && range,
auto outputIterator,
auto predicate,
const auto & newValue )
constexpr

◆ shuffle()

void grem::shuffle ( random_access_range auto && range,
auto && uniformRandomBitGenerator )
inline

◆ sample()

auto grem::sample ( forward_range auto && range,
auto outputIterator,
auto n,
auto && uniformRandomBitGenerator )
inline

◆ reverse()

void grem::reverse ( bidirectional_range auto && range)
constexpr

◆ reverseCopy()

auto grem::reverseCopy ( bidirectional_range auto && range,
auto outputIterator )
constexpr

◆ rotate() [1/4]

auto grem::rotate ( forward_range auto && range,
auto middle )
constexpr

◆ rotateCopy()

auto grem::rotateCopy ( forward_range auto && range,
auto middle,
auto outputIterator )
constexpr

◆ shiftLeft()

auto grem::shiftLeft ( forward_range auto && range,
auto n )
constexpr

◆ shiftRight()

auto grem::shiftRight ( forward_range auto && range,
auto n )
constexpr

◆ copy()

auto grem::copy ( input_range auto && range,
auto outputIterator )
constexpr

◆ copyIf()

auto grem::copyIf ( input_range auto && range,
auto outputIterator,
auto predicate )
constexpr

◆ copyBackward()

auto grem::copyBackward ( bidirectional_range auto && range,
auto outputEnd )
constexpr

◆ move()

auto grem::move ( input_range auto && range,
auto outputIterator )
constexpr

◆ moveBackward()

auto grem::moveBackward ( bidirectional_range auto && range,
auto outputEnd )
constexpr

◆ fill()

void grem::fill ( forward_range auto && range,
const auto & value )
constexpr

◆ iota()

void grem::iota ( forward_range auto && range,
auto firstValue )
constexpr

◆ generate()

void grem::generate ( forward_range auto && range,
auto generate )
constexpr

◆ unreachable()

void grem::unreachable ( )
inline

◆ Array()

template<typename T, typename... Us>
requires (std::is_same_v<T, Us> && ...)
grem::Array ( T ,
Us...  )->Array< T, 1+sizeof...(Us)>

◆ toArray() [1/2]

template<typename T, std::size_t N>
Array< std::remove_cv_t< T >, N > grem::toArray ( T(&) a[N])
constexpr

◆ toArray() [2/2]

template<typename T, std::size_t N>
Array< std::remove_cv_t< T >, N > grem::toArray ( T(&&) a[N])
constexpr

◆ ConstantString()

template<typename StringLike>
grem::ConstantString ( const StringLike & str) ->ConstantString< std::remove_cvref_t< decltype(str[0])>, detail::constant_string_length_v< StringLike > >

◆ operator+() [1/43]

template<typename CharT, std::size_t LengthA, std::size_t LengthB>
auto grem::operator+ ( const ConstantString< CharT, LengthA > & a,
const ConstantString< CharT, LengthB > & b )
constexpr

◆ operator+() [2/43]

template<typename CharT, std::size_t LengthA, std::size_t N>
auto grem::operator+ ( const ConstantString< CharT, LengthA > & a,
const CharT(&) b[N] )
constexpr

◆ operator+() [3/43]

template<typename CharT, std::size_t N, std::size_t LengthB>
auto grem::operator+ ( const CharT(&) a[N],
const ConstantString< CharT, LengthB > & b )
constexpr

◆ operator==() [1/13]

template<typename A, typename AllocatorA, typename B, typename AllocatorB>
requires (requires(const A x, const B y) { x == y; })
bool grem::operator== ( const Indirect< A, AllocatorA > & a,
const Indirect< B, AllocatorB > & b )
nodiscardconstexpr

◆ operator==() [2/13]

template<typename A, typename AllocatorA, typename B>
requires (!std::is_same_v<std::remove_cvref_t<B>, Indirect<A, AllocatorA>> && (std::is_same_v<std::remove_cv_t<A>, bool> || !template_specialization_of<std::remove_cvref_t<B>, Indirect>) && equality_comparable<A, B>)
bool grem::operator== ( const Indirect< A, AllocatorA > & a,
const B & b )
nodiscardconstexpr

◆ operator<=>() [1/10]

template<typename A, typename AllocatorA, typename B, typename AllocatorB>
requires three_way_comparable<A, B>
std::compare_three_way_result_t< A, B > grem::operator<=> ( const Indirect< A, AllocatorA > & a,
const Indirect< B, AllocatorB > & b )
nodiscardconstexpr

◆ operator<=>() [2/10]

template<typename A, typename AllocatorA, typename B>
requires (!std::is_same_v<std::remove_cvref_t<B>, Indirect<A, AllocatorA>> && (std::is_same_v<std::remove_cv_t<A>, bool> || !template_specialization_of<std::remove_cvref_t<B>, Indirect>) && three_way_comparable<A, B>)
std::compare_three_way_result_t< A, B > grem::operator<=> ( const Indirect< A, AllocatorA > & a,
const B & b )
nodiscardconstexpr

◆ operator==() [3/13]

template<typename T, typename U>
requires equality_comparable<T, U>
bool grem::operator== ( const Optional< T > & a,
const Optional< U > & b )
nodiscardconstexpr

Compare two optionals for equality.

Parameters
afirst optional.
bsecond optional.
Returns
true if the first and second optional are either both empty or if their values compare equal, false otherwise.
Exceptions
anyexception thrown by the underlying comparison operator of the value type.

◆ operator==() [4/13]

template<typename T>
bool grem::operator== ( Nullopt value,
const Optional< T > & opt )
nodiscardconstexpr

Check if an optional is empty.

Parameters
valueunit value representing an empty optional.
optoptional to check.
Returns
true if the optional is empty, false otherwise.

◆ operator==() [5/13]

template<typename T>
bool grem::operator== ( const Optional< T > & opt,
Nullopt value )
nodiscardconstexpr

Check if an optional is empty.

Parameters
optoptional to check.
valueunit value representing an empty optional.
Returns
true if the optional is empty, false otherwise.

◆ operator==() [6/13]

template<typename T, typename U>
requires (!template_specialization_of<std::remove_cvref_t<U>, Optional> && equality_comparable<T, U>)
bool grem::operator== ( const Optional< T > & opt,
const U & value )
nodiscardconstexpr

Compare an optional to a value for equality.

Parameters
optoptional to compare.
valuevalue to compare against.
Returns
true if the optional contains a value that is equal to the given value, false otherwise.
Exceptions
anyexception thrown by the underlying comparison operator of the value type.

◆ operator==() [7/13]

template<typename T, typename U>
requires (!template_specialization_of<std::remove_cvref_t<U>, Optional> && equality_comparable<U, T>)
bool grem::operator== ( const U & value,
const Optional< T > & opt )
nodiscardconstexpr

Compare an optional to a value for equality.

Parameters
valuevalue to compare against.
optoptional to compare.
Returns
true if the optional contains a value that is equal to the given value, false otherwise.
Exceptions
anyexception thrown by the underlying comparison operator of the value type.

◆ operator<=>() [3/10]

template<typename T, typename U>
requires three_way_comparable<T, U>
std::compare_three_way_result_t< T, U > grem::operator<=> ( const Optional< T > & a,
const Optional< U > & b )
nodiscardconstexpr

Compare two optionals.

Parameters
afirst optional.
bsecond optional.
Returns
an ordering of the first and second optional, based on whether they are empty or not as well as the ordering of their underlying values if present.
Exceptions
anyexception thrown by the underlying comparison operator of the value type.

◆ operator<=>() [4/10]

template<typename T>
std::strong_ordering grem::operator<=> ( const Optional< T > & opt,
Nullopt value )
nodiscardconstexpr

Compare an optional against an empty optional.

Parameters
optoptional to compare.
valueunit value representing an empty optional.
Returns
an ordering of the optional, based on whether it is empty or not.

◆ operator<=>() [5/10]

template<typename T, typename U>
requires (!template_specialization_of<std::remove_cvref_t<U>, Optional> && three_way_comparable<T, U>)
std::compare_three_way_result_t< T, U > grem::operator<=> ( const Optional< T > & opt,
const U & value )
nodiscardconstexpr

Compare an optional to a value.

Parameters
optoptional to compare.
valuevalue to compare against.
Returns
an ordering of the optional and the value, based on whether the optional is empty or not as well as the ordering of its underlying value compared to the given value if present.
Exceptions
anyexception thrown by the underlying comparison operator of the value type.

◆ operator<=>() [6/10]

template<typename T, typename U>
requires (!template_specialization_of<std::remove_cvref_t<U>, Optional> && three_way_comparable<U, T>)
std::compare_three_way_result_t< U, T > grem::operator<=> ( const U & value,
const Optional< T > & opt )
nodiscardconstexpr

Compare an optional to a value.

Parameters
valuevalue to compare against.
optoptional to compare.
Returns
an ordering of the optional and the value, based on whether the optional is empty or not as well as the ordering of its underlying value compared to the given value if present.
Exceptions
anyexception thrown by the underlying comparison operator of the value type.

◆ Pair()

template<typename T1, typename T2>
grem::Pair ( T1 ,
T2  )->Pair< T1, T2 >

◆ operator==() [8/13]

template<typename T1, typename T2, typename U1, typename U2>
bool grem::operator== ( const Pair< T1, T2 > & a,
const Pair< U1, U2 > & b )
nodiscardconstexpr

◆ operator<=>() [7/10]

template<typename T1, typename T2, typename U1, typename U2>
std::common_comparison_category_t< detail::SynthThreeWayResult< T1, U1 >, detail::SynthThreeWayResult< T2, U2 > > grem::operator<=> ( const Pair< T1, T2 > & a,
const Pair< U1, U2 > & b )
nodiscardconstexpr

◆ make_pair()

template<typename T1, typename T2>
Pair< std::unwrap_ref_decay_t< T1 >, std::unwrap_ref_decay_t< T2 > > grem::make_pair ( T1 && x,
T2 && y )
constexpr

◆ get() [1/28]

template<std::size_t Index, typename T1, typename T2>
tuple_element_t< Index, Pair< T1, T2 > > & grem::get ( Pair< T1, T2 > & t)
nodiscardconstexprnoexcept

◆ get() [2/28]

template<std::size_t Index, typename T1, typename T2>
const tuple_element_t< Index, Pair< T1, T2 > > & grem::get ( const Pair< T1, T2 > & t)
nodiscardconstexprnoexcept

◆ get() [3/28]

template<std::size_t Index, typename T1, typename T2>
tuple_element_t< Index, Pair< T1, T2 > > && grem::get ( Pair< T1, T2 > && t)
nodiscardconstexprnoexcept

◆ get() [4/28]

template<std::size_t Index, typename T1, typename T2>
const tuple_element_t< Index, Pair< T1, T2 > > && grem::get ( const Pair< T1, T2 > && t)
nodiscardconstexprnoexcept

◆ get() [5/28]

template<typename T, typename U>
T & grem::get ( Pair< T, U > & t)
nodiscardconstexprnoexcept

◆ get() [6/28]

template<typename T, typename U>
const T & grem::get ( const Pair< T, U > & t)
nodiscardconstexprnoexcept

◆ get() [7/28]

template<typename T, typename U>
T && grem::get ( Pair< T, U > && t)
nodiscardconstexprnoexcept

◆ get() [8/28]

template<typename T, typename U>
const T && grem::get ( const Pair< T, U > && t)
nodiscardconstexprnoexcept

◆ get() [9/28]

template<typename T, typename U>
T & grem::get ( Pair< U, T > & t)
nodiscardconstexprnoexcept

◆ get() [10/28]

template<typename T, typename U>
const T & grem::get ( const Pair< U, T > & t)
nodiscardconstexprnoexcept

◆ get() [11/28]

template<typename T, typename U>
T && grem::get ( Pair< U, T > && t)
nodiscardconstexprnoexcept

◆ get() [12/28]

template<typename T, typename U>
const T && grem::get ( const Pair< U, T > && t)
nodiscardconstexprnoexcept

◆ column() [1/8]

template<typename ColumnType, typename T, typename ElementID, typename Container>
requires (requires(Container c) { c.template column<ColumnType>(); })
decltype(auto) grem::column ( Registry< T, ElementID, Container > & r)
nodiscardconstexpr

◆ column() [2/8]

template<typename ColumnType, typename T, typename ElementID, typename Container>
requires (requires(const Container c) { c.template column<ColumnType>(); })
decltype(auto) grem::column ( const Registry< T, ElementID, Container > & r)
nodiscardconstexpr

◆ column() [3/8]

template<size_t ColumnIndex, typename T, typename ElementID, typename Container>
requires (requires(Container c) { c.template column<ColumnIndex>(); })
decltype(auto) grem::column ( Registry< T, ElementID, Container > & r)
nodiscardconstexpr

◆ column() [4/8]

template<size_t ColumnIndex, typename T, typename ElementID, typename Container>
requires (requires(const Container c) { c.template column<ColumnIndex>(); })
decltype(auto) grem::column ( const Registry< T, ElementID, Container > & r)
nodiscardconstexpr

◆ operator==() [9/13]

template<typename T, std::size_t N, std::size_t M>
bool grem::operator== ( Span< T, N > a,
Span< T, M > b )
nodiscardconstexpr

◆ operator!=() [1/3]

template<typename T, std::size_t N, std::size_t M>
bool grem::operator!= ( Span< T, N > a,
Span< T, M > b )
nodiscardconstexpr

◆ operator<() [1/3]

template<typename T, std::size_t N, std::size_t M>
bool grem::operator< ( Span< T, N > a,
Span< T, M > b )
nodiscardconstexpr

◆ operator<=() [1/3]

template<typename T, std::size_t N, std::size_t M>
bool grem::operator<= ( Span< T, N > a,
Span< T, M > b )
nodiscardconstexpr

◆ operator>() [1/3]

template<typename T, std::size_t N, std::size_t M>
bool grem::operator> ( Span< T, N > a,
Span< T, M > b )
nodiscardconstexpr

◆ operator>=() [1/3]

template<typename T, std::size_t N, std::size_t M>
bool grem::operator>= ( Span< T, N > a,
Span< T, M > b )
nodiscardconstexpr

◆ Span() [1/5]

template<typename R>
grem::Span ( R && range) ->Span< std::remove_reference_t< decltype(*std::data(range))> >

◆ Span() [2/5]

template<typename T, std::size_t N>
grem::Span ( T(&) [N]) ->Span< T, N >

◆ Span() [3/5]

template<typename T, std::size_t N>
grem::Span ( Array< T, N > & ) ->Span< T, N >

◆ Span() [4/5]

template<typename T, std::size_t N>
grem::Span ( const Array< T, N > & ) ->Span< constT, N >

◆ Span() [5/5]

template<typename Pointer, typename PointerOrSize>
grem::Span ( Pointer data,
PointerOrSize &&  )->Span< std::remove_reference_t< decltype(data[0])> >

◆ asBytes()

template<typename T, std::size_t N>
auto grem::asBytes ( Span< T, N > s)
noexcept

◆ asWritableBytes()

template<typename T, std::size_t N>
auto grem::asWritableBytes ( Span< T, N > s)
noexcept

◆ operator==() [10/13]

template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
bool grem::operator== ( StridedSpan< T, N, S > a,
StridedSpan< T, M, R > b )
nodiscardconstexpr

◆ operator!=() [2/3]

template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
bool grem::operator!= ( StridedSpan< T, N, S > a,
StridedSpan< T, M, R > b )
nodiscardconstexpr

◆ operator<() [2/3]

template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
bool grem::operator< ( StridedSpan< T, N, S > a,
StridedSpan< T, M, R > b )
nodiscardconstexpr

◆ operator<=() [2/3]

template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
bool grem::operator<= ( StridedSpan< T, N, S > a,
StridedSpan< T, M, R > b )
nodiscardconstexpr

◆ operator>() [2/3]

template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
bool grem::operator> ( StridedSpan< T, N, S > a,
StridedSpan< T, M, R > b )
nodiscardconstexpr

◆ operator>=() [2/3]

template<typename T, std::size_t N, std::size_t M, std::size_t S, std::size_t R>
bool grem::operator>= ( StridedSpan< T, N, S > a,
StridedSpan< T, M, R > b )
nodiscardconstexpr

◆ StridedSpan() [1/10]

template<typename R>
grem::StridedSpan ( R && range) ->StridedSpan< std::remove_reference_t< decltype(*std::data(range))>, DYNAMIC_EXTENT, sizeof(std::remove_reference_t< decltype(*std::data(range))>)>

◆ StridedSpan() [2/10]

template<typename OuterR, typename T, typename Outer>
grem::StridedSpan ( OuterR && range,
T Outer::*  )->StridedSpan< std::conditional_t< std::is_const_v< std::remove_reference_t< decltype(*std::data(range))> >, constT, T >, DYNAMIC_EXTENT, sizeof(Outer)>

◆ StridedSpan() [3/10]

template<typename T, std::size_t N>
grem::StridedSpan ( T(&) [N]) ->StridedSpan< T, N, sizeof(T)>

◆ StridedSpan() [4/10]

template<typename T, std::size_t N, typename Outer>
grem::StridedSpan ( Outer(&) [N],
T Outer::*  )->StridedSpan< T, N, sizeof(Outer)>

◆ StridedSpan() [5/10]

template<typename T, std::size_t N, typename Outer>
grem::StridedSpan ( const Outer(&)[N],
T Outer::*  )->StridedSpan< constT, N, sizeof(Outer)>

◆ StridedSpan() [6/10]

template<typename T, std::size_t N>
grem::StridedSpan ( Array< T, N > & ) ->StridedSpan< T, N, sizeof(T)>

◆ StridedSpan() [7/10]

template<typename T, std::size_t N, typename Outer>
grem::StridedSpan ( Array< Outer, N > & ,
T Outer::*  )->StridedSpan< T, N, sizeof(Outer)>

◆ StridedSpan() [8/10]

template<typename T, std::size_t N>
grem::StridedSpan ( const Array< T, N > & ) ->StridedSpan< constT, N, sizeof(T)>

◆ StridedSpan() [9/10]

template<typename T, std::size_t N, typename Outer>
grem::StridedSpan ( const Array< Outer, N > & ,
T Outer::*  )->StridedSpan< constT, N, sizeof(Outer)>

◆ StridedSpan() [10/10]

template<typename Pointer, typename PointerOrSize>
grem::StridedSpan ( Pointer base,
PointerOrSize &&  )->StridedSpan< std::remove_reference_t< decltype(base[0])> >

◆ as_strided_bytes()

template<typename T, std::size_t N, std::size_t S>
auto grem::as_strided_bytes ( StridedSpan< T, N, S > s)
noexcept

◆ as_strided_writable_bytes()

template<typename T, std::size_t N, std::size_t S>
auto grem::as_strided_writable_bytes ( StridedSpan< T, N, S > s)
noexcept

◆ toString() [1/9]

String grem::toString ( int value)
inlinenodiscard

◆ toString() [2/9]

String grem::toString ( long value)
inlinenodiscard

◆ toString() [3/9]

String grem::toString ( long long value)
inlinenodiscard

◆ toString() [4/9]

String grem::toString ( unsigned value)
inlinenodiscard

◆ toString() [5/9]

String grem::toString ( unsigned long value)
inlinenodiscard

◆ toString() [6/9]

String grem::toString ( unsigned long long value)
inlinenodiscard

◆ toString() [7/9]

String grem::toString ( float value)
inlinenodiscard

◆ toString() [8/9]

String grem::toString ( double value)
inlinenodiscard

◆ toString() [9/9]

String grem::toString ( long double value)
inlinenodiscard

◆ Subrange() [1/4]

template<std::input_or_output_iterator I, std::sentinel_for< I > S>
grem::Subrange ( I ,
S  )->Subrange< I, S >

◆ Subrange() [2/4]

template<std::input_or_output_iterator I, std::sentinel_for< I > S>
grem::Subrange ( I ,
S ,
detail::make_unsigned_like_t< detail::iter_difference_t< I > >  )->Subrange< I, S, SubrangeKind::SIZED >

◆ Subrange() [3/4]

template<detail::borrowed_range R>
grem::Subrange ( R && ) ->Subrange< decltype(std::begin(std::declval< R & >())), decltype(std::end(std::declval< R & >())),(detail::sized_range< R >||std::sized_sentinel_for< decltype(std::end(std::declval< R & >())), decltype(std::begin(std::declval< R & >()))>)?SubrangeKind::SIZED:SubrangeKind::UNSIZED >

◆ Subrange() [4/4]

template<detail::borrowed_range R>
grem::Subrange ( R && ,
detail::iter_difference_t< decltype(std::begin(std::declval< R & >()))>  )->Subrange< decltype(std::begin(std::declval< R & >())), decltype(std::end(std::declval< R & >())), SubrangeKind::SIZED >

◆ get() [13/28]

template<std::size_t Index, typename Row, typename Allocator>
decltype(auto) grem::get ( Table< Row, Allocator > & t,
std::size_t rowIndex )
nodiscardconstexpr

◆ get() [14/28]

template<std::size_t Index, typename Row, typename Allocator>
decltype(auto) grem::get ( const Table< Row, Allocator > & t,
std::size_t rowIndex )
nodiscardconstexpr

◆ get() [15/28]

template<typename T, typename Row, typename Allocator>
T & grem::get ( Table< Row, Allocator > & t,
std::size_t rowIndex )
nodiscardconstexpr

◆ get() [16/28]

template<typename T, typename Row, typename Allocator>
const T & grem::get ( const Table< Row, Allocator > & t,
std::size_t rowIndex )
nodiscardconstexpr

◆ column() [5/8]

template<typename T, typename Row, typename Allocator>
Span< T > grem::column ( Table< Row, Allocator > & t)
nodiscardconstexpr

◆ column() [6/8]

template<typename T, typename Row, typename Allocator>
Span< const T > grem::column ( const Table< Row, Allocator > & t)
nodiscardconstexpr

◆ column() [7/8]

template<std::size_t ColumnIndex, typename Row, typename Allocator>
auto grem::column ( Table< Row, Allocator > & t)
nodiscardconstexpr

◆ column() [8/8]

template<std::size_t ColumnIndex, typename Row, typename Allocator>
auto grem::column ( const Table< Row, Allocator > & t)
nodiscardconstexpr

◆ Tuple() [1/2]

template<typename... Ts>
grem::Tuple ( Ts... ) ->Tuple< Ts... >

◆ Tuple() [2/2]

template<typename T1, typename T2>
grem::Tuple ( Pair< T1, T2 > ) ->Tuple< T1, T2 >

◆ operator==() [11/13]

template<typename... TTypes, typename... UTypes>
bool grem::operator== ( const Tuple< TTypes... > & a,
const Tuple< UTypes... > & b )
nodiscardconstexpr

◆ operator<=>() [8/10]

template<typename... TTypes, typename... UTypes>
std::common_comparison_category_t< detail::SynthThreeWayResult< TTypes, UTypes >... > grem::operator<=> ( const Tuple< TTypes... > & a,
const Tuple< UTypes... > & b )
nodiscardconstexpr

◆ make_tuple()

template<typename... Ts>
Tuple< std::unwrap_ref_decay_t< Ts >... > grem::make_tuple ( Ts &&... ts)
nodiscardconstexpr

◆ tie()

template<typename... Ts>
Tuple< Ts &... > grem::tie ( Ts &... ts)
nodiscardconstexpr

◆ forward_as_tuple()

template<typename... Ts>
Tuple< Ts &&... > grem::forward_as_tuple ( Ts &&... ts)
nodiscardconstexpr

◆ tuple_cat()

template<typename... Tuples>
auto grem::tuple_cat ( Tuples &&... tuples)
nodiscardconstexpr

◆ get() [17/28]

template<std::size_t Index, typename... Ts>
decltype(auto) grem::get ( Tuple< Ts... > & t)
nodiscardconstexprnoexcept

◆ get() [18/28]

template<std::size_t Index, typename... Ts>
decltype(auto) grem::get ( const Tuple< Ts... > & t)
nodiscardconstexprnoexcept

◆ get() [19/28]

template<std::size_t Index, typename... Ts>
decltype(auto) grem::get ( Tuple< Ts... > && t)
nodiscardconstexprnoexcept

◆ get() [20/28]

template<std::size_t Index, typename... Ts>
decltype(auto) grem::get ( const Tuple< Ts... > && t)
nodiscardconstexprnoexcept

◆ get() [21/28]

template<typename T, typename... Ts>
T & grem::get ( Tuple< Ts... > & t)
nodiscardconstexprnoexcept

◆ get() [22/28]

template<typename T, typename... Ts>
const T & grem::get ( const Tuple< Ts... > & t)
nodiscardconstexprnoexcept

◆ get() [23/28]

template<typename T, typename... Ts>
T && grem::get ( Tuple< Ts... > && t)
nodiscardconstexprnoexcept

◆ get() [24/28]

template<typename T, typename... Ts>
const T && grem::get ( const Tuple< Ts... > && t)
nodiscardconstexprnoexcept

◆ apply() [1/4]

template<typename Function, typename... Ts>
decltype(auto) grem::apply ( Function && function,
Tuple< Ts... > & tuple )
constexpr

◆ apply() [2/4]

template<typename Function, typename... Ts>
decltype(auto) grem::apply ( Function && function,
const Tuple< Ts... > & tuple )
constexpr

◆ apply() [3/4]

template<typename Function, typename... Ts>
decltype(auto) grem::apply ( Function && function,
Tuple< Ts... > && tuple )
constexpr

◆ apply() [4/4]

template<typename Function, typename... Ts>
decltype(auto) grem::apply ( Function && function,
const Tuple< Ts... > && tuple )
constexpr

◆ operator==() [12/13]

bool grem::operator== ( Monostate ,
Monostate  )
nodiscardconstexprnoexcept

Compare two monostates for equality.

This function always returns true, since monostates are empty unit values containing no state, meaning they are always equal.

Returns
true.

◆ operator<=>() [9/10]

std::strong_ordering grem::operator<=> ( Monostate ,
Monostate  )
nodiscardconstexprnoexcept

Compare two monostates.

This function always returns equal, since monostates are empty unit values containing no state, meaning they are always equal.

Returns
a strong ordering representing equality.

◆ visit()

template<typename Visitor, typename V>
requires (requires { typename std::remove_reference_t<V>::GREM_private_DerivedFromVariantTag; })
decltype(auto) grem::visit ( Visitor && visitor,
V && variant )
constexpr

Call a visitor functor with the currently active underlying value of a variant.

Parameters
visitorcallable object that is overloaded to accept any of the variant alternatives as a parameter.
variantvariant whose underlying value to pass to the visitor.
Returns
the result of calling the visitor with the currently active variant alternative value.
Exceptions
BadVariantAccessif the variant is in the valueless by exception state.
anyexception thrown by the visitor.
See also
match()

◆ holds_alternative() [1/2]

template<typename T, typename... Ts>
bool grem::holds_alternative ( const Variant< Ts... > & variant)
nodiscardconstexprnoexcept

Check if a variant currently holds the alternative with the given type.

Template Parameters
Talternative type to check for. Must be one of the variant's listed alternative types.
Parameters
variantthe variant to check.
Returns
true if the variant holds a value of the given type, false otherwise.
See also
Variant::is()

◆ holds_alternative() [2/2]

template<std::size_t Index, typename... Ts>
bool grem::holds_alternative ( const Variant< Ts... > & variant)
nodiscardconstexprnoexcept

Check if a variant currently holds the alternative with the given index.

Template Parameters
Indexalternative index to check for. Must be within the range of the variant's list of alternative types.
Parameters
variantthe variant to check.
Returns
true if the variant holds a value of the given alternative index, false otherwise.
See also
Variant::is()

◆ get() [25/28]

template<typename T, typename... Ts>
T & grem::get ( Variant< Ts... > & variant)
nodiscardconstexpr

Access the underlying value with the given type of a variant.

Template Parameters
Ttype of the currently active value to get. Must be one of the variant's listed alternative types.
Parameters
variantthe variant to get the value of.
Returns
a reference to the value held by the variant.
Exceptions
BadVariantAccessif the variant does not currently hold a value of the given type.
See also
Variant::get()

◆ get() [26/28]

template<typename T, typename... Ts>
const T & grem::get ( const Variant< Ts... > & variant)
nodiscardconstexpr

Access the underlying value with the given type of a variant.

Template Parameters
Ttype of the currently active value to get. Must be one of the variant's listed alternative types.
Parameters
variantthe variant to get the value of.
Returns
a read-only reference to the value held by the variant.
Exceptions
BadVariantAccessif the variant does not currently hold a value of the given type.
See also
Variant::get()

◆ get() [27/28]

template<std::size_t Index, typename... Ts>
auto & grem::get ( Variant< Ts... > & variant)
nodiscardconstexpr

Access the underlying value with the given index of a variant.

Template Parameters
Indexalternative index of the currently active value to get. Must be within the range of the variant's list of alternative types.
Parameters
variantthe variant to get the value of.
Returns
a reference to the value held by the variant.
Exceptions
BadVariantAccessif the variant does not currently hold the given alternative.
See also
Variant::get()

◆ get() [28/28]

template<std::size_t Index, typename... Ts>
const auto & grem::get ( const Variant< Ts... > & variant)
nodiscardconstexpr

Access the underlying value with the given index of a variant.

Template Parameters
Indexalternative index of the currently active value to get. Must be within the range of the variant's list of alternative types.
Parameters
variantthe variant to get the value of.
Returns
a read-only reference to the value held by the variant.
Exceptions
BadVariantAccessif the variant does not currently hold the given alternative.
See also
Variant::get()

◆ get_if() [1/4]

template<typename T, typename... Ts>
T * grem::get_if ( Variant< Ts... > * variant)
nodiscardconstexprnoexcept

Access the underlying value with the given type of a variant if it is the currently active alternative.

Template Parameters
Ttype of the value to get. Must be one of the variant's listed alternative types.
Parameters
variantnon-owning pointer to the variant to get the value of. Must not be nullptr.
Returns
a non-owning pointer to the value held by the variant, or nullptr if the variant does not currently hold a value of the given type.
See also
Variant::get_if()

◆ get_if() [2/4]

template<typename T, typename... Ts>
const T * grem::get_if ( const Variant< Ts... > * variant)
nodiscardconstexprnoexcept

Access the underlying value with the given type of a variant if it is the currently active alternative.

Template Parameters
Ttype of the value to get. Must be one of the variant's listed alternative types.
Parameters
variantnon-owning read-only pointer to the variant to get the value of. Must not be nullptr.
Returns
a non-owning read-only pointer to the value held by the variant, or nullptr if the variant does not currently hold a value of the given type.
See also
Variant::get_if()

◆ get_if() [3/4]

template<std::size_t Index, typename... Ts>
auto * grem::get_if ( Variant< Ts... > * variant)
nodiscardconstexprnoexcept

Access the underlying value with the given index of a variant if it is the currently active alternative.

Template Parameters
Indexalternative index of the value to get. Must be within the range of the variant's list of alternative types.
Parameters
variantnon-owning pointer to the variant to get the value of. Must not be nullptr.
Returns
a non-owning pointer to the value held by the variant, or nullptr if the variant does not currently hold the given alternative.
See also
Variant::get_if()

◆ get_if() [4/4]

template<std::size_t Index, typename... Ts>
const auto * grem::get_if ( const Variant< Ts... > * variant)
nodiscardconstexprnoexcept

Access the underlying value with the given index of a variant if it is the currently active alternative.

Template Parameters
Indexalternative index of the value to get. Must be within the range of the variant's list of alternative types.
Parameters
variantnon-owning read-only pointer to the variant to get the value of. Must not be nullptr.
Returns
a non-owning read-only pointer to the value held by the variant, or nullptr if the variant does not currently hold the given alternative.
See also
Variant::get_if()

◆ operator==() [13/13]

template<typename... Ts>
requires (requires { { a.template as<Ts>() == b.template as<Ts>() } -> detail::bool_convertible; } && ...)
bool grem::operator== ( const Variant< Ts... > & a,
const Variant< Ts... > & b )
nodiscardconstexpr

Compare two variants for equality.

Parameters
afirst variant.
bsecond variant.
Returns
true if the first and second variant hold the same alternative and their values compare equal, false otherwise.
Exceptions
anyexception thrown by the underlying comparison operator of the relevant alternative type.

◆ operator!=() [3/3]

template<typename... Ts>
requires (requires { { a.template as<Ts>() != b.template as<Ts>() } -> detail::bool_convertible; } && ...)
bool grem::operator!= ( const Variant< Ts... > & a,
const Variant< Ts... > & b )
nodiscardconstexpr

Compare two variants for inequality.

Parameters
afirst variant.
bsecond variant.
Returns
true if the first and second variant hold different alternatives or if their values do not compare equal, false otherwise.
Exceptions
anyexception thrown by the underlying comparison operator of the relevant alternative type.

◆ operator<() [3/3]

template<typename... Ts>
requires (requires { { a.template as<Ts>() < b.template as<Ts>() } -> detail::bool_convertible; } && ...)
bool grem::operator< ( const Variant< Ts... > & a,
const Variant< Ts... > & b )
nodiscardconstexpr

Check if a variant is less than another variant.

Parameters
afirst variant.
bsecond variant.
Returns
true if the first variant is less than the second variant, based on their active alternatives and values.
Exceptions
anyexception thrown by the underlying comparison operator of the relevant alternative type.

◆ operator<=() [3/3]

template<typename... Ts>
requires (requires { { a.template as<Ts>() <= b.template as<Ts>() } -> detail::bool_convertible; } && ...)
bool grem::operator<= ( const Variant< Ts... > & a,
const Variant< Ts... > & b )
nodiscardconstexpr

Check if a variant is less than or equal to another variant.

Parameters
afirst variant.
bsecond variant.
Returns
true if the first variant is less than or equal to the second variant, based on their active alternatives and values.
Exceptions
anyexception thrown by the underlying comparison operator of the relevant alternative type.

◆ operator>() [3/3]

template<typename... Ts>
requires (requires { { a.template as<Ts>() > b.template as<Ts>() } -> detail::bool_convertible; } && ...)
bool grem::operator> ( const Variant< Ts... > & a,
const Variant< Ts... > & b )
nodiscardconstexpr

Check if a variant is greater than another variant.

Parameters
afirst variant.
bsecond variant.
Returns
true if the first variant is greater than the second variant, based on their active alternatives and values.
Exceptions
anyexception thrown by the underlying comparison operator of the relevant alternative type.

◆ operator>=() [3/3]

template<typename... Ts>
requires (requires { { a.template as<Ts>() >= b.template as<Ts>() } -> detail::bool_convertible; } && ...)
bool grem::operator>= ( const Variant< Ts... > & a,
const Variant< Ts... > & b )
nodiscardconstexpr

Check if a variant is greater than or equal to another variant.

Parameters
afirst variant.
bsecond variant.
Returns
true if the first variant is greater than or equal to the second variant, based on their active alternatives and values.
Exceptions
anyexception thrown by the underlying comparison operator of the relevant alternative type.

◆ operator<=>() [10/10]

template<typename... Ts>
std::common_comparison_category_t< std::compare_three_way_result_t< Ts >... > grem::operator<=> ( const Variant< Ts... > & a,
const Variant< Ts... > & b )
nodiscardconstexpr

Compare two variants.

Parameters
afirst variant.
bsecond variant.
Returns
an ordering of the first and second variant, based on their active alternatives and values.
Exceptions
anyexception thrown by the underlying comparison operator of the relevant alternative type.

◆ Overloaded()

template<typename... Functors>
grem::Overloaded ( Functors... ) ->Overloaded< Functors... >

◆ match()

template<typename V>
detail::Matcher< V > grem::match ( V && variant)
nodiscardconstexpr

Choose a function overload to execute based on the active alternative of a variant.

Parameters
variantforwarding reference to the variant to match on.
Returns
an object containing the forwarded variant with a call operator that accepts a set of overloads that take each of the possible variant alternatives as a parameter and calls the overload corresponding to the currently active variant alternative. This call operator may throw BadVariantAccess if the variant is in the valueless by exception state.
Exceptions
BadVariantAccessif the variant is in the valueless by exception state.
anyexception thrown when forwarding the variant to the returned object.
See also
visit()

◆ getFormattedSizeDebug()

template<typename... Args>
size_t grem::getFormattedSizeDebug ( DebugFormatString< Args... > format,
const Args &... args )
nodiscardconstexpr

◆ formatToDebug()

template<typename Output, typename... Args>
void grem::formatToDebug ( Output & output,
DebugFormatString< Args... > format,
const Args &... args )
constexpr

◆ printDebug() [1/2]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::printDebug ( std::FILE * output,
DebugFormatString< Args... > format,
const Args &... args )

◆ printlnDebug() [1/4]

GREM_ALWAYS_INLINE void grem::printlnDebug ( std::FILE * output)

◆ printlnDebug() [2/4]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::printlnDebug ( std::FILE * output,
DebugFormatString< Args... > format,
const Args &... args )

◆ printDebug() [2/2]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::printDebug ( DebugFormatString< Args... > format,
const Args &... args )

◆ printlnDebug() [3/4]

GREM_ALWAYS_INLINE void grem::printlnDebug ( )

◆ printlnDebug() [4/4]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::printlnDebug ( DebugFormatString< Args... > format,
const Args &... args )

◆ eprintDebug()

template<typename... Args>
GREM_ALWAYS_INLINE void grem::eprintDebug ( DebugFormatString< Args... > format,
const Args &... args )

◆ eprintlnDebug() [1/2]

GREM_ALWAYS_INLINE void grem::eprintlnDebug ( )

◆ eprintlnDebug() [2/2]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::eprintlnDebug ( DebugFormatString< Args... > format,
const Args &... args )

◆ formatStringDebug()

template<typename... Args>
String grem::formatStringDebug ( DebugFormatString< Args... > format,
const Args &... args )
inlinenodiscard

◆ formatSmallStringDebug()

template<size_t N, typename... Args>
detail::SmallFormattedString< N > grem::formatSmallStringDebug ( DebugFormatString< Args... > format,
const Args &... args )
inline

◆ operator+=() [1/21]

Offset2D & grem::operator+= ( Offset2D & a,
Offset2D b )
constexprnoexcept

◆ operator+=() [2/21]

Offset2D & grem::operator+= ( Offset2D & a,
Extent2D b )
constexprnoexcept

◆ operator-=() [1/20]

Offset2D & grem::operator-= ( Offset2D & a,
Extent2D b )
constexprnoexcept

◆ operator-() [1/41]

Offset2D grem::operator- ( Offset2D a)
nodiscardconstexprnoexcept

◆ operator+() [4/43]

Offset2D grem::operator+ ( Offset2D a,
Offset2D b )
nodiscardconstexprnoexcept

◆ operator+() [5/43]

Offset2D grem::operator+ ( Offset2D a,
Extent2D b )
nodiscardconstexprnoexcept

◆ operator+() [6/43]

Offset2D grem::operator+ ( Extent2D a,
Offset2D b )
nodiscardconstexprnoexcept

◆ operator-() [2/41]

Offset2D grem::operator- ( Offset2D a,
Offset2D b )
nodiscardconstexprnoexcept

◆ operator-() [3/41]

Offset2D grem::operator- ( Offset2D a,
Extent2D b )
nodiscardconstexprnoexcept

◆ operator-() [4/41]

Offset2D grem::operator- ( Extent2D a,
Offset2D b )
nodiscardconstexprnoexcept

◆ operator*() [1/33]

Offset2D grem::operator* ( Offset2D a,
int32_t b )
nodiscardconstexprnoexcept

◆ operator*() [2/33]

Offset2D grem::operator* ( int32_t a,
Offset2D b )
nodiscardconstexprnoexcept

◆ operator/() [1/30]

Offset2D grem::operator/ ( Offset2D a,
int32_t b )
nodiscardconstexprnoexcept

◆ operator/() [2/30]

Offset2D grem::operator/ ( int32_t a,
Offset2D b )
nodiscardconstexprnoexcept

◆ operator*() [3/33]

Offset2D grem::operator* ( Offset2D a,
uint32_t b )
nodiscardconstexprnoexcept

◆ operator*() [4/33]

Offset2D grem::operator* ( uint32_t a,
Offset2D b )
nodiscardconstexprnoexcept

◆ operator/() [3/30]

Offset2D grem::operator/ ( Offset2D a,
uint32_t b )
nodiscardconstexprnoexcept

◆ operator/() [4/30]

Offset2D grem::operator/ ( uint32_t a,
Offset2D b )
nodiscardconstexprnoexcept

◆ operator+=() [3/21]

Extent2D & grem::operator+= ( Extent2D & a,
Extent2D b )
constexprnoexcept

◆ operator-=() [2/20]

Extent2D & grem::operator-= ( Extent2D & a,
Extent2D b )
constexprnoexcept

◆ operator*=() [1/14]

Extent2D & grem::operator*= ( Extent2D & a,
uint32_t b )
constexprnoexcept

◆ operator/=() [1/14]

Extent2D & grem::operator/= ( Extent2D & a,
uint32_t b )
constexprnoexcept

◆ operator+() [7/43]

Extent2D grem::operator+ ( Extent2D a,
Extent2D b )
nodiscardconstexprnoexcept

◆ operator-() [5/41]

Extent2D grem::operator- ( Extent2D a,
Extent2D b )
nodiscardconstexprnoexcept

◆ operator*() [5/33]

Extent2D grem::operator* ( Extent2D a,
uint32_t b )
nodiscardconstexprnoexcept

◆ operator*() [6/33]

Extent2D grem::operator* ( uint32_t a,
Extent2D b )
nodiscardconstexprnoexcept

◆ operator/() [5/30]

Extent2D grem::operator/ ( Extent2D a,
uint32_t b )
nodiscardconstexprnoexcept

◆ operator/() [6/30]

Extent2D grem::operator/ ( uint32_t a,
Extent2D b )
nodiscardconstexprnoexcept

◆ formatToV()

void grem::formatToV ( FormatOutput & output,
CStringView format,
FormatArguments arguments )
constexpr

◆ getFormattedSize()

template<typename... Args>
size_t grem::getFormattedSize ( FormatString< Args... > format,
const Args &... args )
nodiscardconstexpr

◆ formatTo()

template<typename Output, typename... Args>
void grem::formatTo ( Output & output,
FormatString< Args... > format,
const Args &... args )
constexpr

◆ print() [1/3]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::print ( std::FILE * output,
FormatString< Args... > format,
const Args &... args )

◆ print() [2/3]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::print ( std::ostream & output,
FormatString< Args... > format,
const Args &... args )

◆ println() [1/6]

GREM_ALWAYS_INLINE void grem::println ( std::FILE * output)

◆ println() [2/6]

GREM_ALWAYS_INLINE void grem::println ( std::ostream & output)

◆ println() [3/6]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::println ( std::FILE * output,
FormatString< Args... > format,
const Args &... args )

◆ println() [4/6]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::println ( std::ostream & output,
FormatString< Args... > format,
const Args &... args )

◆ print() [3/3]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::print ( FormatString< Args... > format,
const Args &... args )

◆ println() [5/6]

GREM_ALWAYS_INLINE void grem::println ( )

◆ println() [6/6]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::println ( FormatString< Args... > format,
const Args &... args )

◆ eprint()

template<typename... Args>
GREM_ALWAYS_INLINE void grem::eprint ( FormatString< Args... > format,
const Args &... args )

◆ eprintln() [1/2]

GREM_ALWAYS_INLINE void grem::eprintln ( )

◆ eprintln() [2/2]

template<typename... Args>
GREM_ALWAYS_INLINE void grem::eprintln ( FormatString< Args... > format,
const Args &... args )

◆ formatString()

template<typename... Args>
String grem::formatString ( FormatString< Args... > format,
const Args &... args )
inlinenodiscard

Format specification syntax examples:

Given integer 42:

Format Output Comment
{} 42
{:b} 101010 Binary
{:#b} 0b101010
{:o} 52 Octal
{:#o} 052
{:x} 2a Hexadecimal
{:#x} 0x2a
{:X} 2A Uppercase
{:#X} 0X2A
{:#B} 0B101010
{:>6} 42 Right-align
{:*>6} ****42 Right-align with *
{:*^6} **42** Center-align with *
{:+} +42 Explicit + sign
{:_>+4} _+42
{:_<+6} +42___
{:04} 0042 Zero-pad
{:06} 000042
{:08X} 0000002A

Given floating-point 42.125f:

Format Output Comment
{} 42.125
{:.4} 42.12 Precision 4
{:.7} 42.125
{:f} 42.125000 Fixed
{:.4f} 42.1250
{:e} 4.212500e+01 Scientific
{:.3e} 4.212e+01
{:a} 1.51p+5 Hexfloat
{:.4a} 1.5100p+5
{:E} 4.212500E+01 Uppercase
{:A} 1.51P+5
{:07} 042.125 Zero-pad

◆ formatStringV()

String grem::formatStringV ( CStringView format,
FormatArguments arguments )
inlinenodiscard

◆ formatSmallString()

template<size_t N, typename... Args>
GREM_ALWAYS_INLINE detail::SmallFormattedString< N > grem::formatSmallString ( FormatString< Args... > format,
const Args &... args )

◆ getBitReversed()

template<strict_integral T>
GREM_ALWAYS_INLINE constexpr T grem::getBitReversed ( T value)
nodiscardconstexpr

Get a copy of an integer with its bit order reversed.

Parameters
valuevalue to reverse the bits of.
Returns
a bit-reversed copy of the given value.

◆ getByteReversed()

template<typename T>
GREM_ALWAYS_INLINE constexpr T grem::getByteReversed ( T value)
nodiscardconstexpr

Get a copy of a value with its byte order reversed.

Parameters
valuevalue to reverse the bytes of.
Returns
a byte-reversed copy of the given value.

◆ convertHostEndianToBigEndian()

template<typename T>
GREM_ALWAYS_INLINE constexpr T grem::convertHostEndianToBigEndian ( T value)
nodiscardconstexpr

Convert a value in host-endian byte order to the corresponding value in big-endian byte order.

Parameters
valuevalue to convert. Must be represented in the native byte order of the host system.
Returns
a copy of the given value that is either byte-reversed or unchanged depending on the host system's native endianness.

◆ convertHostEndianToLittleEndian()

template<typename T>
GREM_ALWAYS_INLINE constexpr T grem::convertHostEndianToLittleEndian ( T value)
nodiscardconstexpr

Convert a value in host-endian byte order to the corresponding value in little-endian byte order.

Parameters
valuevalue to convert. Must be represented in the native byte order of the host system.
Returns
a copy of the given value that is either byte-reversed or unchanged depending on the host system's native endianness.

◆ convertBigEndianToHostEndian()

template<typename T>
GREM_ALWAYS_INLINE constexpr T grem::convertBigEndianToHostEndian ( T value)
nodiscardconstexpr

Convert a value in big-endian byte order to the corresponding value in host-endian byte order.

Parameters
valuevalue to convert. Must be represented in big-endian byte order.
Returns
a copy of the given value that is either byte-reversed or unchanged depending on the host system's native endianness.

◆ convertLittleEndianToHostEndian()

template<typename T>
GREM_ALWAYS_INLINE constexpr T grem::convertLittleEndianToHostEndian ( T value)
nodiscardconstexpr

Convert a value in little-endian byte order to the corresponding value in host-endian byte order.

Parameters
valuevalue to convert. Must be represented in little-endian byte order.
Returns
a copy of the given value that is either byte-reversed or unchanged depending on the host system's native endianness.

◆ midpoint() [1/2]

template<strict_arithmetic T>
GREM_ALWAYS_INLINE constexpr T grem::midpoint ( T a,
T b )
nodiscardconstexpr

Get the midpoint between two values.

Parameters
afirst value.
bsecond value.
Returns
half the sum of a and b, rounded towards a for integer types.

◆ min() [1/2]

template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr decltype(auto) grem::min ( A && a,
B && b )
nodiscardconstexpr

Get the smaller of two values, or the first value if they are equivalent.

Parameters
afirst value.
bsecond value.
Returns
b if b is less than a, otherwise a.

◆ max() [1/2]

template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr decltype(auto) grem::max ( A && a,
B && b )
nodiscardconstexpr

Get the greater of two values, or the first value if they are equivalent.

Parameters
afirst value.
bsecond value.
Returns
b if a is less than b, otherwise a.

◆ minmax()

template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr auto grem::minmax ( A && a,
B && b )
nodiscardconstexpr

Get the smaller and greater of two values.

Parameters
afirst value.
bsecond value.
Returns
a pair containing (b, a) if b is less than a, otherwise (a, b).

◆ clamp() [1/3]

template<typename T, typename Low, typename High>
requires (requires(T v, Low l) { v < l; } && requires(T v, High h) { h < v; })
GREM_ALWAYS_INLINE constexpr decltype(auto) grem::clamp ( T && value,
Low && minValue,
High && maxValue )
nodiscardconstexpr

Clamp a value to a specific interval.

Parameters
valuevalue to clamp.
minValuelow boundary to clamp the value to. Must be less than or equal to maxValue.
maxValuehigh boundary to clamp the value to. Must be greater than or equal to minValue.
Returns
minValue if value is less than minValue, maxValue if maxValue is less than value, value otherwise.

◆ rotateBitsLeft()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger grem::rotateBitsLeft ( UnsignedInteger value,
int shift )
nodiscardconstexprnoexcept

Get the result of bitwise left-rotating a value by a number of bits.

Parameters
valueunsigned integer value to rotate.
shiftnumber of bit positions to shift the value to the left by.
Returns
the rotated value.

◆ rotateBitsRight()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger grem::rotateBitsRight ( UnsignedInteger value,
int shift )
nodiscardconstexprnoexcept

Get the result of bitwise right-rotating a value by a number of bits.

Parameters
valueunsigned integer value to rotate.
shiftnumber of bit positions to shift the value to the right by.
Returns
the rotated value.

◆ countOneBits()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int grem::countOneBits ( UnsignedInteger value)
nodiscardconstexprnoexcept

Get the number of 1 bits in a given value.

Parameters
valueunsigned integer value to get the number of 1 bits of.
Returns
the number of 1 bits in the value.

◆ countZeroBits()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int grem::countZeroBits ( UnsignedInteger value)
nodiscardconstexprnoexcept

Get the number of 0 bits in a given value.

Parameters
valueunsigned integer value to get the number of 0 bits of.
Returns
the number of 0 bits in the value.

◆ countLeadingZeroBits()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int grem::countLeadingZeroBits ( UnsignedInteger value)
nodiscardconstexprnoexcept

Get the number of consecutive 0 bits starting at the most significant (leftmost) bit of a given value.

Parameters
valueunsigned integer value to get the number of leading zero bits of.
Returns
the number of leading 0 bits in value.

◆ countLeadingOneBits()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int grem::countLeadingOneBits ( UnsignedInteger value)
nodiscardconstexprnoexcept

Get the number of consecutive 1 bits starting at the most significant (leftmost) bit of a given value.

Parameters
valueunsigned integer value to get the number of leading one bits of.
Returns
the number of leading 1 bits in value.

◆ countTrailingZeroBits()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int grem::countTrailingZeroBits ( UnsignedInteger value)
nodiscardconstexprnoexcept

Get the number of consecutive 0 bits starting at the least significant (rightmost) bit of a given value.

Parameters
valueunsigned integer value to get the number of trailing zero bits of.
Returns
the number of trailing 0 bits in value.

◆ countTrailingOneBits()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int grem::countTrailingOneBits ( UnsignedInteger value)
nodiscardconstexprnoexcept

Get the number of consecutive 1 bits starting at the least significant (rightmost) bit of a given value.

Parameters
valueunsigned integer value to get the number of trailing one bits of.
Returns
the number of trailing 1 bits in value.

◆ getRequiredBitCount()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr int grem::getRequiredBitCount ( UnsignedInteger value)
nodiscardconstexprnoexcept

Get the minimum number of bits required to represent a given value.

Parameters
valueunsigned integer value to get the required number of bits of.
Returns
the smallest integer greater than the base-2 logarithm of value.

◆ getMaxValueForBits()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger grem::getMaxValueForBits ( size_t bits)
nodiscardconstexprnoexcept

Get the maximum value that can be represented in a given unsigned integer type using a given number of bits.

Template Parameters
UnsignedIntegerunsigned integer type for holding the value.
Parameters
bitsnumber of bits to get the maximum value for.
Returns
the maximum value representable with the given number of bits.

◆ isPowerOf2()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr bool grem::isPowerOf2 ( UnsignedInteger value)
nodiscardconstexprnoexcept

Check if a given integer is a power of 2, i.e. if the number appears in the infinite sequence 2^0, 2^1, 2^2, ..., 2^n.

For example, the first 15 powers of 2 are: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384.

Parameters
valueunsigned integer value to check.
Returns
true if the given value is a power of 2, false otherwise.

◆ roundUpToPowerOf2()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger grem::roundUpToPowerOf2 ( UnsignedInteger value)
nodiscardconstexprnoexcept

Get the smallest integral power of 2 that is not less than a given value.

Parameters
valueunsigned integer value to round.
Returns
the smallest integral power of 2 that is not less than value, or 0 if the result cannot be represented in the given integer type.

◆ roundDownToPowerOf2()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger grem::roundDownToPowerOf2 ( UnsignedInteger value)
nodiscardconstexprnoexcept

Get the largest integral power of 2 that is not greater than a given value.

Parameters
valueunsigned integer value to round.
Returns
the largest integral power of 2 that is not greater than value, or 0 if value is 0.

◆ roundUpToMultiple()

template<strict_unsigned_integral UnsignedInteger>
GREM_ALWAYS_INLINE constexpr UnsignedInteger grem::roundUpToMultiple ( UnsignedInteger value,
UnsignedInteger n )
nodiscardconstexpr

Get the smallest multiple of n that is not greater than a given value.

Parameters
valueunsigned integer value to round.
ndivisor to round to. Must be positive.
Returns
the smallest multiple of n that is not greater than value.

◆ calculateBoundingBox()

template<size_t N, typename T>
Box< N, T > grem::calculateBoundingBox ( StridedSpan< const Point< N, T > > points)
nodiscardconstexprnoexcept

Calculate the axis-aligned bounding box of a set of points.

Parameters
pointsset of points to get the axis-aligned bounding box of.
Returns
an axis-aligned box that contains all of the given points.

◆ calculateBoundingRadius()

template<size_t N, typename T>
requires (floating_point<T>)
T grem::calculateBoundingRadius ( StridedSpan< const Point< N, T > > points)
nodiscardconstexprnoexcept

Calculate the bounding radius from the origin of a set of points.

Parameters
pointsset of points to get the bounding radius of.
Returns
the largest distance from the origin of the given points.

◆ getTransformedBoundingBox()

template<size_t N, typename T>
requires (floating_point<T>)
Box< N, T > grem::getTransformedBoundingBox ( const mat< N+1, N+1, T > & transformation,
const Box< N, T > & aabb )
nodiscardconstexprnoexcept

Get the axis-aligned bounding box of an axis-aligned box with an affine transformation applied to it.

Parameters
transformationaffine transformation to apply to the box.
aabbbox to transform and get the axis-aligned bounding box of.
Returns
an axis-aligned box that contains the given box after applying the transformation.

◆ intersects() [1/14]

bool grem::intersects ( const spherical_shape auto & a,
const spherical_shape auto & b )
nodiscardconstexprnoexcept

Check if two spherical shapes intersect.

Parameters
afirst sphere.
bsecond sphere.
Returns
true if the first and second spheres are colliding with each other, false otherwise.

◆ intersects() [2/14]

bool grem::intersects ( const axis_aligned_box_shape auto & a,
const axis_aligned_box_shape auto & b )
nodiscardconstexprnoexcept

Check if two axis-aligned box shapes intersect.

Parameters
afirst box.
bsecond box.
Returns
true if the first and second boxes are colliding with each other, false otherwise.

◆ intersects() [3/14]

bool grem::intersects ( const spherical_shape auto & a,
const axis_aligned_box_shape auto & b )
nodiscardconstexprnoexcept

Check if a spherical shape intersects an axis-aligned box shape.

Parameters
asphere.
bbox.
Returns
true if the sphere and box are colliding with each other, false otherwise.

◆ intersects() [4/14]

bool grem::intersects ( const axis_aligned_box_shape auto & a,
const spherical_shape auto & b )
nodiscardconstexprnoexcept

Check if an axis-aligned box shape intersects a spherical shape.

Parameters
abox.
bsphere.
Returns
true if the box and sphere are colliding with each other, false otherwise.

◆ intersects() [5/14]

template<size_t N, typename T>
bool grem::intersects ( const raycastable_shape auto & a,
const LineSegment< N, T > & b )
nodiscardconstexprnoexcept

Check if a raycastable shape intersects a line segment.

Parameters
araycastable shape.
bline segment.
Returns
true if the shape and line segment are colliding with each other, false otherwise.

◆ intersects() [6/14]

template<size_t N, typename T>
bool grem::intersects ( const LineSegment< N, T > & a,
const raycastable_shape auto & b )
nodiscardconstexprnoexcept

Check if a line segment intersects a raycastable shape.

Parameters
aline segment.
braycastable shape.
Returns
true if the line segment and shape are colliding with each other, false otherwise.

◆ intersects() [7/14]

template<typename T>
bool grem::intersects ( const axis_aligned_box_shape auto & a,
const Capsule< 2, T > & b )
nodiscardconstexprnoexcept

Check if a 2D axis-aligned box shape intersects a 2D capsule.

Parameters
abox.
bcapsule.
Returns
true if the box and capsule are colliding with each other, false otherwise.

◆ intersects() [8/14]

template<typename T>
bool grem::intersects ( const Capsule< 2, T > & a,
const axis_aligned_box_shape auto & b )
nodiscardconstexprnoexcept

Check if a 2D capsule intersects a 2D axis-aligned box shape.

Parameters
acapsule.
bbox.
Returns
true if the capsule and box are colliding with each other, false otherwise.

◆ intersects() [9/14]

template<size_t N, typename T>
bool grem::intersects ( const spherical_shape auto & a,
const Capsule< N, T > & b )
nodiscardconstexprnoexcept

Check if a spherical shape intersects a capsule.

Parameters
asphere.
bcapsule.
Returns
true if the sphere and capsule are colliding with each other, false otherwise.

◆ intersects() [10/14]

template<size_t N, typename T>
bool grem::intersects ( const Capsule< N, T > & a,
const spherical_shape auto & b )
nodiscardconstexprnoexcept

Check if a capsule intersects a spherical shape.

Parameters
acapsule.
bsphere.
Returns
true if the capsule and sphere are colliding with each other, false otherwise.

◆ intersects() [11/14]

template<size_t N, typename T>
bool grem::intersects ( const Sphere< N, T > & a,
const LineSegment< N, T > & b )
nodiscardconstexprnoexcept

Check if a sphere intersects a line segment.

Parameters
asphere.
bline segment.
Returns
true if the sphere and line segment are colliding with each other, false otherwise.

◆ intersects() [12/14]

template<size_t N, typename T>
bool grem::intersects ( const LineSegment< N, T > & a,
const Sphere< N, T > & b )
nodiscardconstexprnoexcept

Check if a line segment intersects a sphere.

Parameters
aline segment.
bsphere.
Returns
true if the line segment and sphere are colliding with each other, false otherwise.

◆ intersects() [13/14]

template<typename T>
bool grem::intersects ( const Circle< T > & a,
const LineSegment< 2, T > & b )
nodiscardconstexprnoexcept

Check if a circle intersects a line segment.

Parameters
acircle.
bline segment.
Returns
true if the circle and line segment are colliding with each other, false otherwise.

◆ intersects() [14/14]

template<typename T>
bool grem::intersects ( const LineSegment< 2, T > & a,
const Circle< T > & b )
nodiscardconstexprnoexcept

Check if a line segment intersects a circle.

Parameters
aline segment.
bcircle.
Returns
true if the line segment and circle are colliding with each other, false otherwise.

◆ midpoint() [2/2]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::midpoint ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

Get the midpoint between two vectors.

Parameters
afirst value.
bsecond value.
Returns
half the sum of a and b, rounded towards a for integer types.

◆ select() [1/2]

template<typename T>
GREM_ALWAYS_INLINE constexpr T grem::select ( bool condition,
T ifTrue,
T ifFalse )
nodiscardconstexpr

Choose between two values based on a condition.

Parameters
conditioncondition to check.
ifTruevalue to return if the condition is true.
ifFalsevalue to return if the condition is false.
Returns
ifTrue if condition is true, ifFalse otherwise.

◆ select() [2/2]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::select ( vec< N, bool > conditions,
vec< N, T > ifTrue,
vec< N, T > ifFalse )
nodiscardconstexpr

Choose between values from two vectors based on a vector of conditions.

Parameters
conditionsconditions to check.
ifTruevalues to return if the corresponding condition is true.
ifFalsevalues to return if the corresponding condition is false.
Returns
a vector where each component is the result of calling select() on the corresponding components of conditions, ifTrue and ifFalse.

◆ min() [2/2]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::min ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

Get the smaller of each component of two vectors.

Parameters
afirst value.
bsecond value.
Returns
a vector where each component is the result of calling min() on the corresponding components of a and b.

◆ max() [2/2]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::max ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

Get the greater of each component of two vectors.

Parameters
afirst value.
bsecond value.
Returns
a vector where each component is the result of calling max() on the corresponding components of a and b.

◆ clamp() [2/3]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::clamp ( vec< N, T > values,
vec< N, T > minValues,
vec< N, T > maxValues )
nodiscardconstexpr

Clamp each component of two vectors to specific intervals.

Parameters
valuesvalues to clamp.
minValueslow boundaries to clamp each value to. Each component must be less than or equal to the corresponding component of maxValues.
maxValueshigh boundaries to clamp each value to. Each component must be greater than or equal to the corresponding component of minValues.
Returns
a vector where each component is the result of calling clamp() on the corresponding component of values, minValues and maxValues.

◆ clamp() [3/3]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::clamp ( vec< N, T > values,
T minValue,
T maxValue )
nodiscardconstexpr

Clamp each component of two vectors to a specific interval.

Parameters
valuesvalues to clamp.
minValuelow boundary to clamp each value to. Must be less than or equal to maxValue.
maxValuehigh boundary to clamp each value to. Must be greater than or equal to minValue.
Returns
a vector where each component is the result of calling clamp() on the corresponding component of values.

◆ sqrt() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::sqrt ( T a)
nodiscardconstexpr

Get the square root of a value.

Parameters
avalue to get the square root of. Must be non-negative.
Returns
the square root of a.

◆ inversesqrt() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::inversesqrt ( T a)
nodiscardconstexpr

Get the reciprocal of the square root of a value.

Parameters
avalue to get the reciprocal square root of. Must be positive.
Returns
1 / sqrt(a).

◆ fract() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::fract ( T a)
nodiscardconstexpr

◆ exp() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::exp ( T a)
nodiscardconstexprnoexcept

Calculate the result of Euler's number raised to a given power.

Parameters
aexponent.
Returns
e ^ a.

◆ exp2() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::exp2 ( T a)
nodiscardconstexprnoexcept

Calculate the result of 2 raised to a given power.

Parameters
aexponent.
Returns
2 ^ a.

◆ pow() [1/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::pow ( T a,
T b )
nodiscardconstexprnoexcept

Calculate the result of raising a given value to a given power.

Parameters
abase.
bexponent.
Returns
a ^ b.

◆ fmod() [1/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::fmod ( T a,
T b )
nodiscardconstexprnoexcept

Calculate the floating-point remainder of a scalar division.

Parameters
anumerator.
bdenominator. Must not be 0.
Returns
a - q * b, where q is a / b with its fractional part truncated.

◆ sign() [1/2]

template<typename T>
requires (floating_point<T> || strict_signed_integral<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::sign ( T a)
nodiscardconstexpr

Get the sign multiplier of a scalar.

Parameters
avalue to get the sign of.
Returns
-1 if a is negative, 0 if a is zero, 1 if a is positive.

◆ wrap() [1/4]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::wrap ( T value,
T limit )
nodiscardconstexprnoexcept

Wrap a scalar value around a range of non-negative values.

Parameters
valuevalue to wrap.
limitupper bound (exclusive) of the range to wrap around. Must be positive.
Returns
value mod limit.

◆ equal() [3/4]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::equal ( T a,
T b )
nodiscardconstexpr

◆ notEqual() [1/2]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::notEqual ( T a,
T b )
nodiscardconstexpr

◆ lessThan() [1/2]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::lessThan ( T a,
T b )
nodiscardconstexpr

◆ lessThanEqual() [1/2]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::lessThanEqual ( T a,
T b )
nodiscardconstexpr

◆ greaterThan() [1/2]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::greaterThan ( T a,
T b )
nodiscardconstexpr

◆ greaterThanEqual() [1/2]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::greaterThanEqual ( T a,
T b )
nodiscardconstexpr

◆ not_() [1/2]

GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::not_ ( bool a)
nodiscardconstexpr

◆ not_() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL grem::not_ ( vec< N, bool > a)
nodiscardconstexpr

◆ any() [1/2]

GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::any ( bool a)
nodiscardconstexpr

◆ any() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::any ( vec< N, bool > a)
nodiscardconstexpr

◆ all() [1/2]

GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::all ( bool a)
nodiscardconstexpr

◆ all() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE constexpr bool GREM_VECTORCALL grem::all ( vec< N, bool > a)
nodiscardconstexpr

◆ abs()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { abs(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::abs ( vec< N, T > a)
nodiscardconstexpr

◆ sqrt() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { sqrt(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::sqrt ( vec< N, T > a)
nodiscardconstexpr

◆ inversesqrt() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { inversesqrt(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::inversesqrt ( vec< N, T > a)
nodiscardconstexpr

◆ cos()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { cos(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::cos ( vec< N, T > a)
nodiscardconstexpr

◆ cosh()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { cosh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::cosh ( vec< N, T > a)
nodiscardconstexpr

◆ acos()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { acos(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::acos ( vec< N, T > a)
nodiscardconstexpr

◆ acosh()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { acosh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::acosh ( vec< N, T > a)
nodiscardconstexpr

◆ sin()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { sin(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::sin ( vec< N, T > a)
nodiscardconstexpr

◆ sinh()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { sinh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::sinh ( vec< N, T > a)
nodiscardconstexpr

◆ asin()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { asin(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::asin ( vec< N, T > a)
nodiscardconstexpr

◆ asinh()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { asinh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::asinh ( vec< N, T > a)
nodiscardconstexpr

◆ tan()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { tan(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::tan ( vec< N, T > a)
nodiscardconstexpr

◆ tanh()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { tanh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::tanh ( vec< N, T > a)
nodiscardconstexpr

◆ atan()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { atan(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::atan ( vec< N, T > a)
nodiscardconstexpr

◆ atanh()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { atanh(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::atanh ( vec< N, T > a)
nodiscardconstexpr

◆ cbrt()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { cbrt(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::cbrt ( vec< N, T > a)
nodiscardconstexpr

◆ erf()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { erf(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::erf ( vec< N, T > a)
nodiscardconstexpr

◆ erfc()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { erfc(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::erfc ( vec< N, T > a)
nodiscardconstexpr

◆ lgamma()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { lgamma(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::lgamma ( vec< N, T > a)
nodiscardconstexpr

◆ tgamma()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { tgamma(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::tgamma ( vec< N, T > a)
nodiscardconstexpr

◆ pow() [2/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { pow(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::pow ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ pow() [3/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const size_t i) { pow(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::pow ( vec< N, T > a,
T b )
nodiscardconstexpr

◆ pow() [4/4]

template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { pow(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::pow ( T a,
vec< N, T > b )
nodiscardconstexpr

◆ exp() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { exp(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::exp ( vec< N, T > a)
nodiscardconstexpr

◆ exp2() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { exp2(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::exp2 ( vec< N, T > a)
nodiscardconstexpr

◆ expm1()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { expm1(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::expm1 ( vec< N, T > a)
nodiscardconstexpr

◆ log()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { log(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::log ( vec< N, T > a)
nodiscardconstexpr

◆ log10()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { log10(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::log10 ( vec< N, T > a)
nodiscardconstexpr

◆ log1p()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { log1p(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::log1p ( vec< N, T > a)
nodiscardconstexpr

◆ log2()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { log2(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::log2 ( vec< N, T > a)
nodiscardconstexpr

◆ logb()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { logb(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::logb ( vec< N, T > a)
nodiscardconstexpr

◆ ilogb()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { ilogb(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, int > GREM_VECTORCALL grem::ilogb ( vec< N, T > a)
nodiscardconstexpr

◆ round()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { round(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::round ( vec< N, T > a)
nodiscardconstexpr

◆ lround()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { lround(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, long > GREM_VECTORCALL grem::lround ( vec< N, T > a)
nodiscardconstexpr

◆ trunc()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { trunc(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::trunc ( vec< N, T > a)
nodiscardconstexpr

◆ floor()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { floor(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::floor ( vec< N, T > a)
nodiscardconstexpr

◆ ceil()

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { ceil(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::ceil ( vec< N, T > a)
nodiscardconstexpr

◆ fract() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { fract(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fract ( vec< N, T > a)
nodiscardconstexpr

◆ sign() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const size_t i) { sign(x[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::sign ( vec< N, T > a)
nodiscardconstexpr

◆ fmod() [2/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { fmod(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fmod ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ fmod() [3/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const size_t i) { fmod(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fmod ( vec< N, T > a,
T b )
nodiscardconstexpr

◆ fmod() [4/4]

template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { fmod(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fmod ( T a,
vec< N, T > b )
nodiscardconstexpr

◆ wrap() [2/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { wrap(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::wrap ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ wrap() [3/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const size_t i) { wrap(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::wrap ( vec< N, T > a,
T b )
nodiscardconstexpr

◆ wrap() [4/4]

template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { wrap(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::wrap ( T a,
vec< N, T > b )
nodiscardconstexpr

◆ fma() [1/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const vec<N, T> z, const size_t i) { fma(x[i], y[i], z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fma ( vec< N, T > a,
vec< N, T > b,
vec< N, T > c )
nodiscardconstexpr

◆ fma() [2/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const T z, const size_t i) { fma(x[i], y[i], z); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fma ( vec< N, T > a,
vec< N, T > b,
T c )
nodiscardconstexpr

◆ fma() [3/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const vec<N, T> z, const size_t i) { fma(x[i], y, z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fma ( vec< N, T > a,
T b,
vec< N, T > c )
nodiscardconstexpr

◆ fma() [4/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const T z, const size_t i) { fma(x[i], y, z); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fma ( vec< N, T > a,
T b,
T c )
nodiscardconstexpr

◆ fdim() [1/3]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { fdim(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fdim ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ fdim() [2/3]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const T y, const size_t i) { fdim(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fdim ( vec< N, T > a,
T b )
nodiscardconstexpr

◆ fdim() [3/3]

template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { fdim(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::fdim ( T a,
vec< N, T > b )
nodiscardconstexpr

◆ equal() [4/4]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { equal(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL grem::equal ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ notEqual() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { notEqual(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL grem::notEqual ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ lessThan() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { lessThan(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL grem::lessThan ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ lessThanEqual() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { lessThanEqual(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL grem::lessThanEqual ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ greaterThan() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { greaterThan(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL grem::greaterThan ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ greaterThanEqual() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { greaterThanEqual(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, bool > GREM_VECTORCALL grem::greaterThanEqual ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ operator~() [1/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator~ ( vec< 1, T > a)
nodiscardconstexpr

◆ operator~() [2/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator~ ( vec< 2, T > a)
nodiscardconstexpr

◆ operator~() [3/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator~ ( vec< 3, T > a)
nodiscardconstexpr

◆ operator~() [4/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator~ ( vec< 4, T > a)
nodiscardconstexpr

◆ operator|() [1/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator| ( vec< 1, T > a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator|() [2/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator| ( vec< 2, T > a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator|() [3/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator| ( vec< 3, T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator|() [4/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator| ( vec< 4, T > a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator&() [1/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator& ( vec< 1, T > a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator&() [2/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator& ( vec< 2, T > a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator&() [3/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator& ( vec< 3, T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator&() [4/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator& ( vec< 4, T > a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator^() [1/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator^ ( vec< 1, T > a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator^() [2/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator^ ( vec< 2, T > a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator^() [3/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator^ ( vec< 3, T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator^() [4/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator^ ( vec< 4, T > a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator+() [8/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator+ ( vec< 1, T > a)
nodiscardconstexpr

◆ operator+() [9/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator+ ( vec< 2, T > a)
nodiscardconstexpr

◆ operator+() [10/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator+ ( vec< 3, T > a)
nodiscardconstexpr

◆ operator+() [11/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator+ ( vec< 4, T > a)
nodiscardconstexpr

◆ operator+() [12/43]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 1, R, T > & a)
nodiscardconstexpr

◆ operator+() [13/43]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 2, R, T > & a)
nodiscardconstexpr

◆ operator+() [14/43]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 3, R, T > & a)
nodiscardconstexpr

◆ operator+() [15/43]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 4, R, T > & a)
nodiscardconstexpr

◆ operator+() [16/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator+ ( qua< T > a)
nodiscardconstexpr

◆ operator-() [6/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator- ( vec< 1, T > a)
nodiscardconstexpr

◆ operator-() [7/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator- ( vec< 2, T > a)
nodiscardconstexpr

◆ operator-() [8/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator- ( vec< 3, T > a)
nodiscardconstexpr

◆ operator-() [9/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator- ( vec< 4, T > a)
nodiscardconstexpr

◆ operator-() [10/41]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator- ( const mat< 1, R, T > & a)
nodiscardconstexpr

◆ operator-() [11/41]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator- ( const mat< 2, R, T > & a)
nodiscardconstexpr

◆ operator-() [12/41]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator- ( const mat< 3, R, T > & a)
nodiscardconstexpr

◆ operator-() [13/41]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator- ( const mat< 4, R, T > & a)
nodiscardconstexpr

◆ operator-() [14/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator- ( qua< T > a)
nodiscardconstexpr

◆ operator+() [17/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator+ ( vec< 1, T > a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator+() [18/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator+ ( vec< 2, T > a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator+() [19/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator+ ( vec< 3, T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator+() [20/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator+ ( vec< 4, T > a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator+() [21/43]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 1, R, T > & a,
const mat< 1, R, T > & b )
nodiscardconstexpr

◆ operator+() [22/43]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 2, R, T > & a,
const mat< 2, R, T > & b )
nodiscardconstexpr

◆ operator+() [23/43]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 3, R, T > & a,
const mat< 3, R, T > & b )
nodiscardconstexpr

◆ operator+() [24/43]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 4, R, T > & a,
const mat< 4, R, T > & b )
nodiscardconstexpr

◆ operator+() [25/43]

template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator+ ( qua< T > a,
qua< T > b )
nodiscardconstexpr

◆ operator+() [26/43]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator+ ( vec< 1, T > a,
T b )
nodiscardconstexpr

◆ operator+() [27/43]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator+ ( vec< 2, T > a,
T b )
nodiscardconstexpr

◆ operator+() [28/43]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator+ ( vec< 3, T > a,
T b )
nodiscardconstexpr

◆ operator+() [29/43]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator+ ( vec< 4, T > a,
T b )
nodiscardconstexpr

◆ operator+() [30/43]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator+ ( T a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator+() [31/43]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator+ ( T a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator+() [32/43]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator+ ( T a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator+() [33/43]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator+ ( T a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator+() [34/43]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 1, R, T > & a,
T b )
nodiscardconstexpr

◆ operator+() [35/43]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 2, R, T > & a,
T b )
nodiscardconstexpr

◆ operator+() [36/43]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 3, R, T > & a,
T b )
nodiscardconstexpr

◆ operator+() [37/43]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator+ ( const mat< 4, R, T > & a,
T b )
nodiscardconstexpr

◆ operator+() [38/43]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator+ ( T a,
const mat< 1, R, T > & b )
nodiscardconstexpr

◆ operator+() [39/43]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator+ ( T a,
const mat< 2, R, T > & b )
nodiscardconstexpr

◆ operator+() [40/43]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator+ ( T a,
const mat< 3, R, T > & b )
nodiscardconstexpr

◆ operator+() [41/43]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator+ ( T a,
const mat< 4, R, T > & b )
nodiscardconstexpr

◆ operator+() [42/43]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator+ ( qua< T > a,
T b )
nodiscardconstexpr

◆ operator+() [43/43]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator+ ( T a,
qua< T > b )
nodiscardconstexpr

◆ operator-() [15/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator- ( vec< 1, T > a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator-() [16/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator- ( vec< 2, T > a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator-() [17/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator- ( vec< 3, T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator-() [18/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator- ( vec< 4, T > a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator-() [19/41]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator- ( const mat< 1, R, T > & a,
const mat< 1, R, T > & b )
nodiscardconstexpr

◆ operator-() [20/41]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator- ( const mat< 2, R, T > & a,
const mat< 2, R, T > & b )
nodiscardconstexpr

◆ operator-() [21/41]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator- ( const mat< 3, R, T > & a,
const mat< 3, R, T > & b )
nodiscardconstexpr

◆ operator-() [22/41]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator- ( const mat< 4, R, T > & a,
const mat< 4, R, T > & b )
nodiscardconstexpr

◆ operator-() [23/41]

template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator- ( qua< T > a,
qua< T > b )
nodiscardconstexpr

◆ operator-() [24/41]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator- ( vec< 1, T > a,
T b )
nodiscardconstexpr

◆ operator-() [25/41]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator- ( vec< 2, T > a,
T b )
nodiscardconstexpr

◆ operator-() [26/41]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator- ( vec< 3, T > a,
T b )
nodiscardconstexpr

◆ operator-() [27/41]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator- ( vec< 4, T > a,
T b )
nodiscardconstexpr

◆ operator-() [28/41]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator- ( T a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator-() [29/41]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator- ( T a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator-() [30/41]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator- ( T a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator-() [31/41]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator- ( T a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator-() [32/41]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator- ( const mat< 1, R, T > & a,
T b )
nodiscardconstexpr

◆ operator-() [33/41]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator- ( const mat< 2, R, T > & a,
T b )
nodiscardconstexpr

◆ operator-() [34/41]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator- ( const mat< 3, R, T > & a,
T b )
nodiscardconstexpr

◆ operator-() [35/41]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator- ( const mat< 4, R, T > & a,
T b )
nodiscardconstexpr

◆ operator-() [36/41]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator- ( T a,
const mat< 1, R, T > & b )
nodiscardconstexpr

◆ operator-() [37/41]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator- ( T a,
const mat< 2, R, T > & b )
nodiscardconstexpr

◆ operator-() [38/41]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator- ( T a,
const mat< 3, R, T > & b )
nodiscardconstexpr

◆ operator-() [39/41]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator- ( T a,
const mat< 4, R, T > & b )
nodiscardconstexpr

◆ operator-() [40/41]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator- ( qua< T > a,
T b )
nodiscardconstexpr

◆ operator-() [41/41]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator- ( T a,
qua< T > b )
nodiscardconstexpr

◆ operator*() [7/33]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator* ( vec< 1, T > a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator*() [8/33]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator* ( vec< 2, T > a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator*() [9/33]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator* ( vec< 3, T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator*() [10/33]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator* ( vec< 4, T > a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator*() [11/33]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator* ( vec< 1, T > a,
T b )
nodiscardconstexpr

◆ operator*() [12/33]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator* ( vec< 2, T > a,
T b )
nodiscardconstexpr

◆ operator*() [13/33]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator* ( vec< 3, T > a,
T b )
nodiscardconstexpr

◆ operator*() [14/33]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator* ( vec< 4, T > a,
T b )
nodiscardconstexpr

◆ operator*() [15/33]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator* ( T a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator*() [16/33]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator* ( T a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator*() [17/33]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator* ( T a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator*() [18/33]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator* ( T a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator*() [19/33]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator* ( const mat< 1, R, T > & a,
T b )
nodiscardconstexpr

◆ operator*() [20/33]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator* ( const mat< 2, R, T > & a,
T b )
nodiscardconstexpr

◆ operator*() [21/33]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator* ( const mat< 3, R, T > & a,
T b )
nodiscardconstexpr

◆ operator*() [22/33]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator* ( const mat< 4, R, T > & a,
T b )
nodiscardconstexpr

◆ operator*() [23/33]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator* ( T a,
const mat< 1, R, T > & b )
nodiscardconstexpr

◆ operator*() [24/33]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator* ( T a,
const mat< 2, R, T > & b )
nodiscardconstexpr

◆ operator*() [25/33]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator* ( T a,
const mat< 3, R, T > & b )
nodiscardconstexpr

◆ operator*() [26/33]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator* ( T a,
const mat< 4, R, T > & b )
nodiscardconstexpr

◆ operator*() [27/33]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator* ( qua< T > a,
T b )
nodiscardconstexpr

◆ operator*() [28/33]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator* ( T a,
qua< T > b )
nodiscardconstexpr

◆ operator/() [7/30]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator/ ( vec< 1, T > a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator/() [8/30]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator/ ( vec< 2, T > a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator/() [9/30]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator/ ( vec< 3, T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator/() [10/30]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator/ ( vec< 4, T > a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator/() [11/30]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator/ ( vec< 1, T > a,
T b )
nodiscardconstexpr

◆ operator/() [12/30]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator/ ( vec< 2, T > a,
T b )
nodiscardconstexpr

◆ operator/() [13/30]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator/ ( vec< 3, T > a,
T b )
nodiscardconstexpr

◆ operator/() [14/30]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator/ ( vec< 4, T > a,
T b )
nodiscardconstexpr

◆ operator/() [15/30]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > GREM_VECTORCALL grem::operator/ ( T a,
vec< 1, T > b )
nodiscardconstexpr

◆ operator/() [16/30]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::operator/ ( T a,
vec< 2, T > b )
nodiscardconstexpr

◆ operator/() [17/30]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator/ ( T a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator/() [18/30]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > GREM_VECTORCALL grem::operator/ ( T a,
vec< 4, T > b )
nodiscardconstexpr

◆ operator/() [19/30]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator/ ( const mat< 1, R, T > & a,
T b )
nodiscardconstexpr

◆ operator/() [20/30]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator/ ( const mat< 2, R, T > & a,
T b )
nodiscardconstexpr

◆ operator/() [21/30]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator/ ( const mat< 3, R, T > & a,
T b )
nodiscardconstexpr

◆ operator/() [22/30]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator/ ( const mat< 4, R, T > & a,
T b )
nodiscardconstexpr

◆ operator/() [23/30]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > GREM_VECTORCALL grem::operator/ ( T a,
const mat< 1, R, T > & b )
nodiscardconstexpr

◆ operator/() [24/30]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > GREM_VECTORCALL grem::operator/ ( T a,
const mat< 2, R, T > & b )
nodiscardconstexpr

◆ operator/() [25/30]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > GREM_VECTORCALL grem::operator/ ( T a,
const mat< 3, R, T > & b )
nodiscardconstexpr

◆ operator/() [26/30]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > GREM_VECTORCALL grem::operator/ ( T a,
const mat< 4, R, T > & b )
nodiscardconstexpr

◆ operator/() [27/30]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator/ ( qua< T > a,
T b )
nodiscardconstexpr

◆ operator/() [28/30]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator/ ( T a,
qua< T > b )
nodiscardconstexpr

◆ operator+=() [4/21]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL grem::operator+= ( vec< 1, T > & a,
vec< 1, T > b )
constexpr

◆ operator+=() [5/21]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL grem::operator+= ( vec< 2, T > & a,
vec< 2, T > b )
constexpr

◆ operator+=() [6/21]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL grem::operator+= ( vec< 3, T > & a,
vec< 3, T > b )
constexpr

◆ operator+=() [7/21]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL grem::operator+= ( vec< 4, T > & a,
vec< 4, T > b )
constexpr

◆ operator+=() [8/21]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL grem::operator+= ( mat< 1, R, T > & a,
const mat< 1, R, T > & b )
constexpr

◆ operator+=() [9/21]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL grem::operator+= ( mat< 2, R, T > & a,
const mat< 2, R, T > & b )
constexpr

◆ operator+=() [10/21]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL grem::operator+= ( mat< 3, R, T > & a,
const mat< 3, R, T > & b )
constexpr

◆ operator+=() [11/21]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL grem::operator+= ( mat< 4, R, T > & a,
const mat< 4, R, T > & b )
constexpr

◆ operator+=() [12/21]

template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL grem::operator+= ( qua< T > & a,
qua< T > b )
constexpr

◆ operator+=() [13/21]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL grem::operator+= ( vec< 1, T > & a,
T b )
constexpr

◆ operator+=() [14/21]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL grem::operator+= ( vec< 2, T > & a,
T b )
constexpr

◆ operator+=() [15/21]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL grem::operator+= ( vec< 3, T > & a,
T b )
constexpr

◆ operator+=() [16/21]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL grem::operator+= ( vec< 4, T > & a,
T b )
constexpr

◆ operator+=() [17/21]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL grem::operator+= ( mat< 1, R, T > & a,
T b )
constexpr

◆ operator+=() [18/21]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL grem::operator+= ( mat< 2, R, T > & a,
T b )
constexpr

◆ operator+=() [19/21]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL grem::operator+= ( mat< 3, R, T > & a,
T b )
constexpr

◆ operator+=() [20/21]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL grem::operator+= ( mat< 4, R, T > & a,
T b )
constexpr

◆ operator+=() [21/21]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL grem::operator+= ( qua< T > & a,
T b )
constexpr

◆ operator-=() [3/20]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL grem::operator-= ( vec< 1, T > & a,
vec< 1, T > b )
constexpr

◆ operator-=() [4/20]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL grem::operator-= ( vec< 2, T > & a,
vec< 2, T > b )
constexpr

◆ operator-=() [5/20]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL grem::operator-= ( vec< 3, T > & a,
vec< 3, T > b )
constexpr

◆ operator-=() [6/20]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL grem::operator-= ( vec< 4, T > & a,
vec< 4, T > b )
constexpr

◆ operator-=() [7/20]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL grem::operator-= ( mat< 1, R, T > & a,
const mat< 1, R, T > & b )
constexpr

◆ operator-=() [8/20]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL grem::operator-= ( mat< 2, R, T > & a,
const mat< 2, R, T > & b )
constexpr

◆ operator-=() [9/20]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL grem::operator-= ( mat< 3, R, T > & a,
const mat< 3, R, T > & b )
constexpr

◆ operator-=() [10/20]

template<size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL grem::operator-= ( mat< 4, R, T > & a,
const mat< 4, R, T > & b )
constexpr

◆ operator-=() [11/20]

template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL grem::operator-= ( qua< T > & a,
qua< T > b )
constexpr

◆ operator-=() [12/20]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL grem::operator-= ( vec< 1, T > & a,
T b )
constexpr

◆ operator-=() [13/20]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL grem::operator-= ( vec< 2, T > & a,
T b )
constexpr

◆ operator-=() [14/20]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL grem::operator-= ( vec< 3, T > & a,
T b )
constexpr

◆ operator-=() [15/20]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL grem::operator-= ( vec< 4, T > & a,
T b )
constexpr

◆ operator-=() [16/20]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL grem::operator-= ( mat< 1, R, T > & a,
T b )
constexpr

◆ operator-=() [17/20]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL grem::operator-= ( mat< 2, R, T > & a,
T b )
constexpr

◆ operator-=() [18/20]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL grem::operator-= ( mat< 3, R, T > & a,
T b )
constexpr

◆ operator-=() [19/20]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL grem::operator-= ( mat< 4, R, T > & a,
T b )
constexpr

◆ operator-=() [20/20]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL grem::operator-= ( qua< T > & a,
T b )
constexpr

◆ operator*=() [2/14]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL grem::operator*= ( vec< 1, T > & a,
vec< 1, T > b )
constexpr

◆ operator*=() [3/14]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL grem::operator*= ( vec< 2, T > & a,
vec< 2, T > b )
constexpr

◆ operator*=() [4/14]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL grem::operator*= ( vec< 3, T > & a,
vec< 3, T > b )
constexpr

◆ operator*=() [5/14]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL grem::operator*= ( vec< 4, T > & a,
vec< 4, T > b )
constexpr

◆ operator*=() [6/14]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL grem::operator*= ( vec< 1, T > & a,
T b )
constexpr

◆ operator*=() [7/14]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL grem::operator*= ( vec< 2, T > & a,
T b )
constexpr

◆ operator*=() [8/14]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL grem::operator*= ( vec< 3, T > & a,
T b )
constexpr

◆ operator*=() [9/14]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL grem::operator*= ( vec< 4, T > & a,
T b )
constexpr

◆ operator*=() [10/14]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL grem::operator*= ( mat< 1, R, T > & a,
T b )
constexpr

◆ operator*=() [11/14]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL grem::operator*= ( mat< 2, R, T > & a,
T b )
constexpr

◆ operator*=() [12/14]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL grem::operator*= ( mat< 3, R, T > & a,
T b )
constexpr

◆ operator*=() [13/14]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL grem::operator*= ( mat< 4, R, T > & a,
T b )
constexpr

◆ operator*=() [14/14]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL grem::operator*= ( qua< T > & a,
T b )
constexpr

◆ operator/=() [2/14]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL grem::operator/= ( vec< 1, T > & a,
vec< 1, T > b )
constexpr

◆ operator/=() [3/14]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL grem::operator/= ( vec< 2, T > & a,
vec< 2, T > b )
constexpr

◆ operator/=() [4/14]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL grem::operator/= ( vec< 3, T > & a,
vec< 3, T > b )
constexpr

◆ operator/=() [5/14]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL grem::operator/= ( vec< 4, T > & a,
vec< 4, T > b )
constexpr

◆ operator/=() [6/14]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 1, T > &GREM_VECTORCALL grem::operator/= ( vec< 1, T > & a,
T b )
constexpr

◆ operator/=() [7/14]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > &GREM_VECTORCALL grem::operator/= ( vec< 2, T > & a,
T b )
constexpr

◆ operator/=() [8/14]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 3, T > &GREM_VECTORCALL grem::operator/= ( vec< 3, T > & a,
T b )
constexpr

◆ operator/=() [9/14]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< 4, T > &GREM_VECTORCALL grem::operator/= ( vec< 4, T > & a,
T b )
constexpr

◆ operator/=() [10/14]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, R, T > &GREM_VECTORCALL grem::operator/= ( mat< 1, R, T > & a,
T b )
constexpr

◆ operator/=() [11/14]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, R, T > &GREM_VECTORCALL grem::operator/= ( mat< 2, R, T > & a,
T b )
constexpr

◆ operator/=() [12/14]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, R, T > &GREM_VECTORCALL grem::operator/= ( mat< 3, R, T > & a,
T b )
constexpr

◆ operator/=() [13/14]

template<size_t R, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, R, T > &GREM_VECTORCALL grem::operator/= ( mat< 4, R, T > & a,
T b )
constexpr

◆ operator/=() [14/14]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > &GREM_VECTORCALL grem::operator/= ( qua< T > & a,
T b )
constexpr

◆ sum() [1/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::sum ( vec< 1, T > a)
nodiscardconstexpr

◆ sum() [2/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::sum ( vec< 2, T > a)
nodiscardconstexpr

◆ sum() [3/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::sum ( vec< 3, T > a)
nodiscardconstexpr

◆ sum() [4/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::sum ( vec< 4, T > a)
nodiscardconstexpr

◆ product() [1/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::product ( vec< 1, T > a)
nodiscardconstexpr

◆ product() [2/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::product ( vec< 2, T > a)
nodiscardconstexpr

◆ product() [3/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::product ( vec< 3, T > a)
nodiscardconstexpr

◆ product() [4/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::product ( vec< 4, T > a)
nodiscardconstexpr

◆ minComponent() [1/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::minComponent ( vec< 1, T > a)
nodiscardconstexpr

◆ minComponent() [2/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::minComponent ( vec< 2, T > a)
nodiscardconstexpr

◆ minComponent() [3/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::minComponent ( vec< 3, T > a)
nodiscardconstexpr

◆ minComponent() [4/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::minComponent ( vec< 4, T > a)
nodiscardconstexpr

◆ maxComponent() [1/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::maxComponent ( vec< 1, T > a)
nodiscardconstexpr

◆ maxComponent() [2/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::maxComponent ( vec< 2, T > a)
nodiscardconstexpr

◆ maxComponent() [3/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::maxComponent ( vec< 3, T > a)
nodiscardconstexpr

◆ maxComponent() [4/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::maxComponent ( vec< 4, T > a)
nodiscardconstexpr

◆ dot() [1/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::dot ( vec< 1, T > a,
vec< 1, T > b )
nodiscardconstexpr

◆ dot() [2/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::dot ( vec< 2, T > a,
vec< 2, T > b )
nodiscardconstexpr

◆ dot() [3/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::dot ( vec< 3, T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ dot() [4/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::dot ( vec< 4, T > a,
vec< 4, T > b )
nodiscardconstexpr

◆ dot() [5/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::dot ( qua< T > a,
qua< T > b )
nodiscardconstexpr

◆ length2() [1/6]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::length2 ( T a)
nodiscardconstexpr

◆ length2() [2/6]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::length2 ( vec< 1, T > a)
nodiscardconstexpr

◆ length2() [3/6]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::length2 ( vec< 2, T > a)
nodiscardconstexpr

◆ length2() [4/6]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::length2 ( vec< 3, T > a)
nodiscardconstexpr

◆ length2() [5/6]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::length2 ( vec< 4, T > a)
nodiscardconstexpr

◆ length2() [6/6]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::length2 ( qua< T > a)
nodiscardconstexpr

◆ length() [1/3]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::length ( T a)
nodiscardconstexpr

◆ length() [2/3]

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::length ( vec< N, T > a)
nodiscardconstexpr

◆ length() [3/3]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::length ( qua< T > a)
nodiscardconstexpr

◆ distance2() [1/2]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::distance2 ( T a,
T b )
nodiscardconstexpr

◆ distance2() [2/2]

template<size_t N, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::distance2 ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ distance() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::distance ( T a,
T b )
nodiscardconstexpr

◆ distance() [2/2]

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::distance ( vec< N, T > a,
vec< N, T > b )
nodiscardconstexpr

◆ normalize() [1/2]

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::normalize ( vec< N, T > a)
nodiscardconstexpr

Convert a vector to a unit vector of length 1 in the same direction.

Parameters
avector to normalize. Must not be 0.
Returns
a unit vector in the same direction as the given vector.

◆ normalize() [2/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::normalize ( qua< T > a)
nodiscardconstexpr

Convert a quaternion to a unit quaternion of length 1.

Parameters
aquaternion to normalize. Must not be 0.
Returns
a unit quaternion of the given quaternion.

◆ tryNormalize()

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< vec< N, T > > GREM_VECTORCALL grem::tryNormalize ( vec< N, T > a)
nodiscardconstexpr

Try to convert a vector to a unit vector of length 1 in the same direction.

Parameters
avector to normalize.
Returns
a unit vector in the same direction as the given vector, or an empty optional if the given vector is very close to 0.

◆ tryDivide() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< T > GREM_VECTORCALL grem::tryDivide ( T a,
T b )
nodiscardconstexpr

Try to divide a floating-point value by a scalar and produce a defined result.

Parameters
anumerator.
bdenominator.
Returns
the quotient of a and b, or an empty optional if the denominator is very close to 0.

◆ tryDivide() [2/2]

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< vec< N, T > > GREM_VECTORCALL grem::tryDivide ( vec< N, T > a,
T b )
nodiscardconstexpr

Try to divide a floating-point vector by a scalar and produce a defined result.

Parameters
anumerator.
bdenominator.
Returns
the quotient of a and b, or an empty optional if the denominator is very close to 0.

◆ getAngle() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::getAngle ( vec< 2, T > a)
nodiscardconstexpr

Get the absolute angle of a 2-dimensional vector, in radians.

Parameters
avector to get the angle of.
Returns
atan2(a.y, a.x).

◆ tryGetAngle()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< T > GREM_VECTORCALL grem::tryGetAngle ( vec< 2, T > a)
nodiscardconstexpr

Try to get the absolute angle of a 2-dimensional vector, in radians.

Parameters
avector to get the angle of.
Returns
atan2(a.y, a.x), or an empty optional if the given vector is very close to 0.

◆ decomposeMagnitudeDirection()

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr DecomposeMagnitudeDirectionResult< N, T > grem::decomposeMagnitudeDirection ( vec< N, T > a)
nodiscardconstexpr

◆ tryDecomposeMagnitudeDirection()

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< DecomposeMagnitudeDirectionResult< N, T > > grem::tryDecomposeMagnitudeDirection ( vec< N, T > a)
nodiscardconstexpr

◆ decomposeMagnitudeAngle()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr DecomposeMagnitudeAngleResult< T > grem::decomposeMagnitudeAngle ( vec< 2, T > a)
nodiscardconstexpr

◆ tryDecomposeMagnitudeAngle()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr Optional< DecomposeMagnitudeAngleResult< T > > grem::tryDecomposeMagnitudeAngle ( vec< 2, T > a)
nodiscardconstexpr

◆ angledVector()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< 2, T > GREM_VECTORCALL grem::angledVector ( T angle)
nodiscardconstexpr

Create a 2-dimensional direction unit vector from an angle.

Parameters
angleabsolute angle of the vector to create, in radians.
Returns
(cos(angle), sin(angle)).

◆ determinant() [1/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::determinant ( const mat< 1, 1, T > & a)
nodiscardconstexpr

◆ determinant() [2/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::determinant ( const mat< 2, 2, T > & a)
nodiscardconstexpr

◆ determinant() [3/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::determinant ( const mat< 3, 3, T > & a)
nodiscardconstexpr

◆ determinant() [4/4]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::determinant ( const mat< 4, 4, T > & a)
nodiscardconstexpr

◆ transpose()

template<size_t C, size_t R, typename T>
GREM_ALWAYS_INLINE constexpr mat< R, C, T > grem::transpose ( const mat< C, R, T > & a)
nodiscardconstexpr

◆ conjugate()

template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::conjugate ( qua< T > a)
nodiscardconstexpr

◆ inverse() [1/5]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, 1, T > GREM_VECTORCALL grem::inverse ( const mat< 1, 1, T > & a)
nodiscardconstexpr

◆ inverse() [2/5]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, 2, T > GREM_VECTORCALL grem::inverse ( const mat< 2, 2, T > & a)
nodiscardconstexpr

◆ inverse() [3/5]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL grem::inverse ( const mat< 3, 3, T > & a)
nodiscardconstexpr

◆ inverse() [4/5]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL grem::inverse ( const mat< 4, 4, T > & a)
nodiscardconstexpr

◆ inverseTranspose() [1/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 1, 1, T > GREM_VECTORCALL grem::inverseTranspose ( const mat< 1, 1, T > & a)
nodiscardconstexpr

◆ inverseTranspose() [2/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 2, 2, T > GREM_VECTORCALL grem::inverseTranspose ( const mat< 2, 2, T > & a)
nodiscardconstexpr

◆ inverseTranspose() [3/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL grem::inverseTranspose ( const mat< 3, 3, T > & a)
nodiscardconstexpr

◆ inverseTranspose() [4/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL grem::inverseTranspose ( const mat< 4, 4, T > & a)
nodiscardconstexpr

◆ inverse() [5/5]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::inverse ( qua< T > a)
nodiscardconstexpr

◆ cross() [1/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::cross ( vec< 2, T > a,
vec< 2, T > b )
nodiscardconstexpr

◆ cross() [2/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::cross ( vec< 3, T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ cross() [3/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::cross ( qua< T > a,
qua< T > b )
nodiscardconstexpr

◆ cross() [4/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::cross ( vec< 3, T > a,
qua< T > b )
nodiscardconstexpr

◆ cross() [5/5]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::cross ( qua< T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator*() [29/33]

template<size_t N, size_t C2, size_t R1, typename T>
GREM_ALWAYS_INLINE constexpr mat< C2, R1, T > GREM_VECTORCALL grem::operator* ( const mat< N, R1, T > & a,
const mat< C2, N, T > & b )
nodiscardconstexpr

◆ operator*() [30/33]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::operator* ( const mat< N, N, T > & a,
vec< N, T > b )
nodiscardconstexpr

◆ operator*() [31/33]

template<typename T>
GREM_ALWAYS_INLINE constexpr qua< T > GREM_VECTORCALL grem::operator* ( qua< T > a,
qua< T > b )
nodiscardconstexpr

◆ operator*() [32/33]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator* ( qua< T > a,
vec< 3, T > b )
nodiscardconstexpr

◆ operator*() [33/33]

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 3, T > GREM_VECTORCALL grem::operator* ( vec< 3, T > a,
qua< T > b )
nodiscardconstexpr

◆ operator/() [29/30]

template<size_t N, size_t C2, size_t R1, typename T>
GREM_ALWAYS_INLINE constexpr mat< C2, R1, T > GREM_VECTORCALL grem::operator/ ( const mat< N, R1, T > & a,
const mat< C2, N, T > & b )
nodiscardconstexpr

◆ operator/() [30/30]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::operator/ ( const mat< N, N, T > & a,
vec< N, T > b )
nodiscardconstexpr

◆ convertQuaternionTo3x3Matrix()

template<typename T>
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL grem::convertQuaternionTo3x3Matrix ( qua< T > a)
nodiscard

◆ convertQuaternionTo4x4Matrix()

template<typename T>
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL grem::convertQuaternionTo4x4Matrix ( qua< T > a)
nodiscard

◆ convert3x3MatrixToQuaternion()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::convert3x3MatrixToQuaternion ( const mat< 3, 3, T > & a)
nodiscard

◆ convert4x4MatrixToQuaternion()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::convert4x4MatrixToQuaternion ( const mat< 4, 4, T > & a)
nodiscard

◆ diagonal()

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr mat< N, N, T > GREM_VECTORCALL grem::diagonal ( vec< N, T > components)
nodiscardconstexpr

Create a matrix from its diagonal components.

Parameters
componentsvector of diagonal components of the matrix.
Returns
a matrix with the given components along its diagonal, and zeros everywhere else.

◆ translate() [1/2]

template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL grem::translate ( vec< 2, T > translation)
nodiscardconstexpr

Create a translation matrix describing a 2D translation.

Parameters
translationtranslation vector.
Returns
the translation matrix.

◆ rotate() [2/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL grem::rotate ( T rotation)
nodiscard

Create a rotation matrix describing a 2D rotation.

Parameters
rotationrotation angle, in radians.
Returns
the rotation matrix.

◆ scale() [1/2]

template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL grem::scale ( vec< 2, T > scale)
nodiscardconstexpr

Create a scale matrix describing a 2D scale.

Parameters
scalescale vector.
Returns
the scale matrix.

◆ shear()

template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL grem::shear ( vec< 2, T > shear)
nodiscardconstexpr

Create a shear matrix describing a 2D shear.

Parameters
shearshear vector.
Returns
the shear matrix.

◆ translateRotateScale() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL grem::translateRotateScale ( vec< 2, T > translation,
T rotation,
vec< 2, T > scale )
nodiscard

Create a combined translation, rotation and scale (TRS) matrix describing a 2D transformation.

Equivalent to grem::translate(translation) * grem::rotate(rotation) * grem::scale(scale).

Parameters
translationtranslation vector.
rotationrotation angle, in radians.
scalescale vector.
Returns
the combined TRS matrix.

◆ translateRotate() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL grem::translateRotate ( vec< 2, T > translation,
T rotation )
nodiscard

Create a combined translation and rotation matrix describing a 2D transformation.

Equivalent to grem::translate(translation) * grem::rotate(rotation).

Parameters
translationtranslation vector.
rotationrotation angle, in radians.
Returns
the combined TR matrix.

◆ translateScale() [1/2]

template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 3, 3, T > GREM_VECTORCALL grem::translateScale ( vec< 2, T > translation,
vec< 2, T > scale )
nodiscardconstexpr

Create a combined translation and scale matrix describing a 2D transformation.

Equivalent to grem::translate(translation) * grem::scale(scale).

Parameters
translationtranslation vector.
scalescale vector.
Returns
the combined TS matrix.

◆ rotateScale() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 3, 3, T > GREM_VECTORCALL grem::rotateScale ( T rotation,
vec< 2, T > scale )
nodiscard

Create a combined rotation and scale matrix describing a 2D transformation.

Equivalent to grem::rotate(rotation) * grem::scale(scale).

Parameters
rotationrotation angle, in radians.
scalescale vector.
Returns
the combined RS matrix.

◆ translate() [2/2]

template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL grem::translate ( vec< 3, T > translation)
nodiscardconstexpr

Create a translation matrix describing a 3D translation.

Parameters
translationtranslation vector.
Returns
the translation matrix.

◆ rotate() [3/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL grem::rotate ( qua< T > rotation)
nodiscard

Create a rotation matrix describing a 3D rotation.

Parameters
rotationrotation quaternion.
Returns
the rotation matrix.

◆ rotate() [4/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL grem::rotate ( vec< 3, T > pitchYawRollAngles)
nodiscard

Create a rotation matrix describing a 3D rotation from rotation angles.

Parameters
pitchYawRollAnglesrotation angles (pitch, yaw, roll).
Returns
the rotation matrix.

◆ scale() [2/2]

template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL grem::scale ( vec< 3, T > scale)
nodiscardconstexpr

Create a scale matrix describing a 3D scale.

Parameters
scalescale vector.
Returns
the scale matrix.

◆ translateRotateScale() [2/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL grem::translateRotateScale ( vec< 3, T > translation,
qua< T > rotation,
vec< 3, T > scale )
nodiscardconstexpr

Create a combined translation, rotation and scale (TRS) matrix describing a 3D transformation.

Equivalent to grem::translate(translation) * grem::rotate(rotation) * grem::scale(scale).

Parameters
translationtranslation vector.
rotationrotation quaternion.
scalescale vector.
Returns
the combined TRS matrix.

◆ translateRotate() [2/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL grem::translateRotate ( vec< 3, T > translation,
qua< T > rotation )
nodiscardconstexpr

Create a combined translation and rotation matrix describing a 3D transformation.

Equivalent to grem::translate(translation) * grem::rotate(rotation).

Parameters
translationtranslation vector.
rotationrotation quaternion.
Returns
the combined TR matrix.

◆ translateScale() [2/2]

template<typename T>
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL grem::translateScale ( vec< 3, T > translation,
vec< 3, T > scale )
nodiscardconstexpr

Create a combined translation and scale matrix describing a 3D transformation.

Equivalent to grem::translate(translation) * grem::scale(scale).

Parameters
translationtranslation vector.
scalescale vector.
Returns
the combined TS matrix.

◆ rotateScale() [2/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr mat< 4, 4, T > GREM_VECTORCALL grem::rotateScale ( qua< T > rotation,
vec< 3, T > scale )
nodiscardconstexpr

Create a combined rotation and scale matrix describing a 3D transformation.

Equivalent to grem::rotate(rotation) * grem::scale(scale).

Parameters
rotationrotation quaternion.
scalescale vector.
Returns
the combined RS matrix.

◆ lookAt()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL grem::lookAt ( vec< 3, T > eye,
vec< 3, T > target,
vec< 3, T > up )
nodiscard

◆ ortho() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL grem::ortho ( T left,
T right,
T bottom,
T top )
nodiscard

◆ ortho() [2/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL grem::ortho ( T left,
T right,
T bottom,
T top,
T nearZ,
T farZ )
nodiscard

◆ frustum()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL grem::frustum ( T left,
T right,
T bottom,
T top,
T nearZ,
T farZ )
nodiscard

◆ perspective()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL grem::perspective ( T verticalFieldOfView,
T aspectRatio,
T nearZ,
T farZ )
nodiscard

◆ infinitePerspective()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE mat< 4, 4, T > GREM_VECTORCALL grem::infinitePerspective ( T verticalFieldOfView,
T aspectRatio,
T nearZ )
nodiscard

◆ decomposeTranslationRotationScale() [1/2]

template<typename T>
requires (floating_point<T>)
DecomposeTranslationRotationScaleResult< 2, T > grem::decomposeTranslationRotationScale ( const mat< 3, 3, T > & a)
inlinenodiscard

Decompose a combined translation, rotation and scale (TRS) matrix describing a 2D transformation into its components.

Parameters
atransformation matrix to decompose.
Returns
the decomposed components.
Warning
If the given matrix is not decomposible, the results are unspecified.

◆ decomposeTranslationRotationScale() [2/2]

template<typename T>
requires (floating_point<T>)
DecomposeTranslationRotationScaleResult< 3, T > grem::decomposeTranslationRotationScale ( const mat< 4, 4, T > & a)
inlinenodiscard

Decompose a combined translation, rotation and scale (TRS) matrix describing a 3D transformation into its components.

Parameters
atransformation matrix to decompose.
Returns
the decomposed components.
Warning
If the given matrix is not decomposible, the results are unspecified.

◆ getAngle() [2/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL grem::getAngle ( qua< T > orientation)
nodiscard

◆ getAxis()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL grem::getAxis ( qua< T > orientation)
nodiscard

◆ getPitch()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL grem::getPitch ( qua< T > orientation)
nodiscard

◆ getYaw()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL grem::getYaw ( qua< T > orientation)
nodiscard

◆ getRoll()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL grem::getRoll ( qua< T > orientation)
nodiscard

◆ getPitchYawRoll()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL grem::getPitchYawRoll ( qua< T > orientation)
nodiscard

◆ rotation()

template<typename T>
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::rotation ( vec< 3, T > from,
vec< 3, T > to )
nodiscard

◆ quatLookAt()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::quatLookAt ( vec< 3, T > direction,
vec< 3, T > up )
nodiscard

◆ angleAxis()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::angleAxis ( T angle,
vec< 3, T > axis )
nodiscard

◆ pitch()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::pitch ( T angle)
nodiscard

◆ yaw()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::yaw ( T angle)
nodiscard

◆ roll()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::roll ( T angle)
nodiscard

◆ convertAnglesToQuaternion() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::convertAnglesToQuaternion ( T pitchAngle,
T yawAngle,
T rollAngle )
nodiscard

◆ convertAnglesToQuaternion() [2/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE qua< T > GREM_VECTORCALL grem::convertAnglesToQuaternion ( vec< 3, T > pitchYawRollAngles)
nodiscard

◆ convertXDirectionToRollAngle()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL grem::convertXDirectionToRollAngle ( vec< 2, T > x)
nodiscard

◆ convertYDirectionToRollAngle()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL grem::convertYDirectionToRollAngle ( vec< 2, T > y)
nodiscard

◆ convertZDirectionToPitchYawAngles()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL grem::convertZDirectionToPitchYawAngles ( vec< 3, T > z)
nodiscard

◆ convertRollAngleToXDirection()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL grem::convertRollAngleToXDirection ( T rollAngle)
nodiscard

◆ convertRollAngleToYDirection()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL grem::convertRollAngleToYDirection ( T rollAngle)
nodiscard

◆ convertPitchYawAnglesToZDirection()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL grem::convertPitchYawAnglesToZDirection ( T pitchAngle,
T yawAngle )
nodiscard

◆ convertAnglesToForwardDirection() [1/3]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL grem::convertAnglesToForwardDirection ( T rollAngle)
nodiscard

◆ convertAnglesToForwardDirection() [2/3]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL grem::convertAnglesToForwardDirection ( vec< 2, T > pitchYawAngles)
nodiscard

◆ convertAnglesToForwardDirection() [3/3]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, T > GREM_VECTORCALL grem::convertAnglesToForwardDirection ( vec< 3, T > pitchYawRollAngles)
nodiscard

◆ convertForwardDirectionToAngles() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE T GREM_VECTORCALL grem::convertForwardDirectionToAngles ( vec< 2, T > forward)
nodiscard

◆ convertForwardDirectionToAngles() [2/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, T > GREM_VECTORCALL grem::convertForwardDirectionToAngles ( vec< 3, T > forward)
nodiscard

◆ getAngleDifference()

template<typename T>
T grem::getAngleDifference ( T a,
T b )
inlinenodiscard

Get the smallest signed angle between two absolute angles.

Parameters
afirst angle, in radians.
bsecond angle, in radians.
Returns
the smallest signed angle from angle a to b, in the range [-pi, pi], in radians.

◆ getAngleDifferenceAroundAxis()

template<typename T>
T grem::getAngleDifferenceAroundAxis ( vec< 3, T > axis,
vec< 3, T > a,
vec< 3, T > b )
inlinenodiscard

Get the smallest signed angle around an axis between two relative vectors.

Parameters
axisaxis to get the angle around. Must be a unit vector.
afirst vector.
bsecond vector.
Returns
the smallest signed angle around the given axis from the direction of a to the direction of b.

◆ convertDegreesToRadians() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::convertDegreesToRadians ( T angleInDegrees)
nodiscardconstexpr

◆ convertDegreesToRadians() [2/2]

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::convertDegreesToRadians ( vec< N, T > angleInDegrees)
nodiscardconstexpr

◆ convertRadiansToDegrees() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::convertRadiansToDegrees ( T angleInRadians)
nodiscardconstexpr

◆ convertRadiansToDegrees() [2/2]

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::convertRadiansToDegrees ( vec< N, T > angleInRadians)
nodiscardconstexpr

◆ isfinite() [1/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 1, bool > GREM_VECTORCALL grem::isfinite ( const vec< 1, T > & values)
nodiscard

Check if each component of a vector is finite.

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isfinite() on the corresponding component of values.

◆ isfinite() [2/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, bool > GREM_VECTORCALL grem::isfinite ( const vec< 2, T > & values)
nodiscard

Check if each component of a vector is finite.

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isfinite() on the corresponding component of values.

◆ isfinite() [3/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, bool > GREM_VECTORCALL grem::isfinite ( const vec< 3, T > & values)
nodiscard

Check if each component of a vector is finite.

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isfinite() on the corresponding component of values.

◆ isfinite() [4/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 4, bool > GREM_VECTORCALL grem::isfinite ( const vec< 4, T > & values)
nodiscard

Check if each component of a vector is finite.

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isfinite() on the corresponding component of values.

◆ isinf() [1/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 1, bool > GREM_VECTORCALL grem::isinf ( const vec< 1, T > & values)
nodiscard

Check if each component of a vector is infinity.

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isinf() on the corresponding component of values.

◆ isinf() [2/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, bool > GREM_VECTORCALL grem::isinf ( const vec< 2, T > & values)
nodiscard

Check if each component of a vector is infinity.

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isinf() on the corresponding component of values.

◆ isinf() [3/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, bool > GREM_VECTORCALL grem::isinf ( const vec< 3, T > & values)
nodiscard

Check if each component of a vector is infinity.

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isinf() on the corresponding component of values.

◆ isinf() [4/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 4, bool > GREM_VECTORCALL grem::isinf ( const vec< 4, T > & values)
nodiscard

Check if each component of a vector is infinity.

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isinf() on the corresponding component of values.

◆ isnan() [1/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 1, bool > GREM_VECTORCALL grem::isnan ( const vec< 1, T > & values)
nodiscard

Check if each component of a vector is NaN (not a number).

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isnan() on the corresponding component of values.

◆ isnan() [2/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 2, bool > GREM_VECTORCALL grem::isnan ( const vec< 2, T > & values)
nodiscard

Check if each component of a vector is NaN (not a number).

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isnan() on the corresponding component of values.

◆ isnan() [3/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 3, bool > GREM_VECTORCALL grem::isnan ( const vec< 3, T > & values)
nodiscard

Check if each component of a vector is NaN (not a number).

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isnan() on the corresponding component of values.

◆ isnan() [4/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< 4, bool > GREM_VECTORCALL grem::isnan ( const vec< 4, T > & values)
nodiscard

Check if each component of a vector is NaN (not a number).

Parameters
valuesvalues to check.
Returns
a vector where each component is the result of calling isnan() on the corresponding component of values.

◆ signbit()

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE vec< N, bool > GREM_VECTORCALL grem::signbit ( vec< N, T > values)
nodiscard

Get the sign bits of the components of a vector.

Parameters
valuesvalues to get the sign bits of.
Returns
a vector where each component is the result of calling signbit() on the corresponding component of values.

◆ copysign() [1/2]

template<typename T>
requires (floating_point<T> || strict_signed_integral<T>)
GREM_ALWAYS_INLINE T grem::copysign ( T magnitude,
T sign )
nodiscard

Get a value with the sign of a different value.

Parameters
magnitudevalue with the magnitude of the resulting value.
signvalue with the sign of the resulting value.
Returns
a value with the magnitude of magnitude and the sign of sign.

◆ copysign() [2/2]

template<size_t N, typename T>
requires (requires(const size_t i) { copysign(magnitudes[i], signs[i]); })
GREM_ALWAYS_INLINE vec< N, T > grem::copysign ( vec< N, T > magnitudes,
vec< N, T > signs )
nodiscard

Get a vector with the signs of a different vector.

Parameters
magnitudesvalues with the magnitude of each component of the resulting vector.
signsvalues with the sign of each component of the resulting vector.
Returns
a vector where each component is the result of calling copysign() on the corresponding components of magnitudes and signs.

◆ step() [1/3]

template<typename T>
requires (floating_point<T> || strict_signed_integral<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::step ( T edge,
T value )
nodiscardconstexpr

Evaluate a step function with a given edge value.

Parameters
edgelocation of the edge of the step function.
valuevalue at which to evaluate the step function.
Returns
0 if value < edge, 1 otherwise.

◆ step() [2/3]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const size_t i) { step(x[i], y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::step ( vec< N, T > edges,
vec< N, T > values )
nodiscardconstexpr

Evaluate component-wise step functions with a given vector of edge values.

Parameters
edgeslocations of the edges of the step functions.
valuesvalues at which to evaluate the step functions.
Returns
a vector where each component is the result of calling step() on the corresponding components of edges and values.

◆ step() [3/3]

template<size_t N, typename T>
requires (requires(const T x, const vec<N, T> y, const size_t i) { step(x, y[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::step ( T edge,
vec< N, T > values )
nodiscardconstexpr

Evaluate a component-wise step function with a given edge value.

Parameters
edgelocation of the edge of the step function.
valuesvalues at which to evaluate the step function.
Returns
a vector where each component is the result of calling step() on the corresponding component of values.

◆ smoothstep() [1/3]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::smoothstep ( T edge0,
T edge1,
T value )
nodiscardconstexpr

Perform Hermite interpolation between two edge values.

Parameters
edge0location of the lower edge of the smoothstep function.
edge1location of the upper edge of the smoothstep function.
valuevalue at which to evaluate the smoothstep function.
Returns
t * t * (3 - 2 * t), where t = clamp((value - edge0) / (edge1 - edge0), 0, 1).

◆ smoothstep() [2/3]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const vec<N, T> y, const vec<N, T> z, const size_t i) { smoothstep(x[i], y[i], z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::smoothstep ( vec< N, T > edges0,
vec< N, T > edges1,
vec< N, T > values )
nodiscardconstexpr

Perform component-wise Hermite interpolation between two vectors of edge values.

Parameters
edges0locations of the lower edges of the smoothstep functions.
edges1locations of the upper edges of the smoothstep functions.
valuesvalues at which to evaluate the smoothstep functions.
Returns
a vector where each component is the result of calling smoothstep() on the corresponding components of edges0, edges1 and values.

◆ smoothstep() [3/3]

template<size_t N, typename T>
requires (requires(const T x, const T y, const vec<N, T> z, const size_t i) { smoothstep(x, y, z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::smoothstep ( T edge0,
T edge1,
vec< N, T > values )
nodiscardconstexpr

Perform component-wise Hermite interpolation between two edge values.

Parameters
edge0location of the lower edge of the smoothstep function.
edge1location of the upper edge of the smoothstep function.
valuesvalues at which to evaluate the smoothstep function.
Returns
a vector where each component is the result of calling smoothstep() on the corresponding component of values.

◆ lerp() [1/3]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::lerp ( T a,
T b,
T alpha )
nodiscardconstexpr

Perform linear interpolation (lerp) between two values.

Parameters
avalue to blend from.
bvalue to blend towards.
alphaamount to blend each value.
Returns
a * (1 - alpha) + b * alpha.

◆ lerp() [2/3]

template<size_t N, typename T, typename Alpha>
requires (requires(const vec<N, T> x, const vec<N, T> y, const Alpha z, const size_t i) { lerp(x[i], y[i], z); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::lerp ( vec< N, T > a,
vec< N, T > b,
Alpha alpha )
nodiscardconstexpr

Perform linear interpolation (lerp) between two vectors.

Parameters
avalues to blend from.
bvalues to blend towards.
alphaamount to blend each value.
Returns
a vector where each component is the result of calling lerp() on the corresponding components of a, b and alpha.

◆ lerp() [3/3]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > grem::lerp ( qua< T > a,
qua< T > b,
T alpha )
nodiscardconstexpr

Perform linear interpolation (lerp) between two quaternions.

Parameters
avalue to blend from.
bvalue to blend towards.
alphaamount to blend each value.
Returns
a * (1 - alpha) + b * alpha.

◆ unlerp()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::unlerp ( T value,
T minValue,
T maxValue )
nodiscardconstexpr

Linearly convert a value from a specific range to the [0, 1] range.

Parameters
valuevalue to convert.
minValueminimum value of the input range.
maxValuemaximum value of the output range.
Returns
(value - minValue) / (maxValue - minValue).

◆ slerp()

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > grem::slerp ( qua< T > a,
qua< T > b,
T alpha )
nodiscardconstexpr

Perform spherical linear interpolation (slerp) between two quaternions.

Parameters
avalue to blend from.
bvalue to blend towards.
alphaamount to blend each value.
Returns
a blended by alpha towards b using spherical linear interpolation.

◆ mix() [1/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::mix ( T a,
T b,
T alpha )
nodiscardconstexpr

Blend between two values based on an alpha value.

Parameters
avalue to blend from.
bvalue to blend towards.
alphaamount to blend each value.
Returns
a * (1 - alpha) + b * alpha.

◆ mix() [2/4]

template<size_t N, typename T, typename Alpha>
requires (requires(const vec<N, T> x, const vec<N, T> y, const Alpha z, const size_t i) { mix(x[i], y[i], z); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::mix ( vec< N, T > a,
vec< N, T > b,
Alpha alpha )
nodiscardconstexpr

Blend between values from two vectors based on an alpha value.

Parameters
avalues to blend from.
bvalues to blend towards.
alphaamount to blend each value.
Returns
a vector where each component is the result of calling mix() on the corresponding components of a, b and alpha.

◆ mix() [3/4]

template<size_t N, typename T, typename Alpha>
requires (requires(const vec<N, T> x, const vec<N, T> y, const Alpha z, const size_t i) { mix(x[i], y[i], z[i]); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::mix ( vec< N, T > a,
vec< N, T > b,
vec< N, Alpha > alphas )
nodiscardconstexpr

Blend between values from two vectors based on a vector of alpha values.

Parameters
avalues to blend from.
bvalues to blend towards.
alphasamount to blend each value.
Returns
a vector where each component is the result of calling mix() on the corresponding components of a, b and alpha.

◆ mix() [4/4]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr qua< T > grem::mix ( qua< T > a,
qua< T > b,
T alpha )
nodiscardconstexpr

Blend between two quaternions based on an alpha value.

Parameters
avalue to blend from.
bvalue to blend towards.
alphaamount to blend each value.
Returns
a blended by alpha towards b using spherical linear interpolation.

◆ rotate90DegreesCounterclockwise()

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > grem::rotate90DegreesCounterclockwise ( vec< 2, T > a)
nodiscardconstexpr

Get a 2D vector rotated 90 degrees counterclockwise.

Parameters
avector to rotate.
Returns
the rotated vector.

◆ rotate90DegreesClockwise()

template<typename T>
GREM_ALWAYS_INLINE constexpr vec< 2, T > grem::rotate90DegreesClockwise ( vec< 2, T > a)
nodiscardconstexpr

Get a 2D vector rotated 90 degrees clockwise.

Parameters
avector to rotate.
Returns
the rotated vector.

◆ flipX()

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::flipX ( vec< N, T > a)
nodiscardconstexpr

Get a vector flipped along the X axis.

Parameters
avector to flip.
Returns
the flipped vector.

◆ flipY()

template<size_t N, typename T>
requires (N >= 2)
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::flipY ( vec< N, T > a)
nodiscardconstexpr

Get a vector flipped along the Y axis.

Parameters
avector to flip.
Returns
the flipped vector.

◆ flipZ()

template<size_t N, typename T>
requires (N >= 3)
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::flipZ ( vec< N, T > a)
nodiscardconstexpr

Get a vector flipped along the Z axis.

Parameters
avector to flip.
Returns
the flipped vector.

◆ reflect()

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::reflect ( vec< N, T > a,
vec< N, T > normal )
nodiscardconstexpr

Get a vector reflected against a plane with a given normal vector.

Parameters
avector to reflect.
normalnormal of the plane to reflect against.
Returns
a - 2 * dot(normal, a) * normal.

◆ flipSignIf() [1/2]

template<typename T>
requires (floating_point<T> || strict_signed_integral<T>)
GREM_ALWAYS_INLINE constexpr T GREM_VECTORCALL grem::flipSignIf ( T value,
bool flip )
nodiscardconstexpr

Get a value with its sign flipped if a boolean is true.

Parameters
valuevalue to potentially flip.
flipwhether to flip the value or not.
Returns
-value if flip is true, value otherwise.

◆ flipSignIf() [2/2]

template<size_t N, typename T>
requires (requires(const vec<N, T> x, const bool y, const size_t i) { flipSignIf(x[i], y); })
GREM_ALWAYS_INLINE constexpr vec< N, T > GREM_VECTORCALL grem::flipSignIf ( vec< N, T > value,
bool flip )
nodiscardconstexpr

Get a vector with its sign flipped if a boolean is true.

Parameters
valuevector to potentially flip.
flipwhether to flip the vector or not.
Returns
-value if flip is true, value otherwise.

◆ clampLength() [1/2]

template<typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr T grem::clampLength ( T value,
T maxLength )
nodiscardconstexpr

Get a value with the same sign as a given value, but whose magnitude has been clamped to a maximum length.

Parameters
valuevalue to clamp.
maxLengthmaximum magnitude to clamp to. Must be non-negative.
Returns
a value with the same sign as the given value, and a magnitude that is approximately equal to min(abs(value), maxLength).
Note
If the given value is zero, or if maxLength is equal to zero, a value of zero is returned.

◆ clampLength() [2/2]

template<size_t N, typename T>
requires (strict_arithmetic<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::clampLength ( vec< N, T > vector,
T maxLength )
nodiscardconstexpr

Get a vector with the same direction as a given vector, but whose magnitude has been clamped to a maximum length.

Parameters
vectorvector to clamp.
maxLengthmaximum magnitude to clamp to. Must be non-negative.
Returns
a vector with the same direction as the given vector, and a magnitude that is approximately equal to min(length(vector), maxLength).
Note
If the given vector is the zero vector, or if maxLength is equal to zero, a zero vector is returned.

◆ moveTowards() [1/2]

template<typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T grem::moveTowards ( T value,
T targetValue,
T delta )
nodiscardconstexpr

Move a value linearly towards a target by some distance, without overshoot.

Parameters
valuevalue to move.
targetValuevalue to move towards.
deltamaximum distance to move by. Must be non-negative.
Returns
the updated value.

◆ moveTowards() [2/2]

template<size_t N, typename T>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::moveTowards ( vec< N, T > value,
vec< N, T > targetValue,
T delta )
nodiscardconstexpr

Move a vector linearly towards a target by some distance, without overshoot.

Parameters
valuevector to move.
targetValuevector to move towards.
deltamaximum distance to move by. Must be non-negative.
Returns
the updated vector.

◆ expDecay() [1/4]

template<typename T, typename Frequency, typename Duration>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T grem::expDecay ( T value,
T targetValue,
Frequency decayRate,
Duration deltaTime )
nodiscardconstexpr

Exponentially decay a value towards a target value over a given time.

Parameters
valuevalue to decay.
targetValuevalue to decay towards.
decayRateexponential decay constant; higher means faster. Useful range is approximately [1, 25]. Must be non-negative.
deltaTimetime step to decay over. Must be non-negative.
Returns
the updated value.

◆ expDecay() [2/4]

template<size_t N, typename T, typename Frequency, typename Duration>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::expDecay ( vec< N, T > value,
vec< N, T > targetValue,
Frequency decayRate,
Duration deltaTime )
nodiscardconstexpr

Exponentially decay a vector towards a target vector over a given time.

Parameters
valuevector to decay.
targetValuevector to decay towards.
decayRateexponential decay constant; higher means faster. Useful range is approximately [1, 25]. Must be non-negative.
deltaTimetime step to decay over. Must be non-negative.
Returns
the updated vector.

◆ expDecay() [3/4]

template<typename T, typename Frequency, typename Duration>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr T grem::expDecay ( T value,
Frequency decayRate,
Duration deltaTime )
nodiscardconstexpr

Exponentially decay a value towards zero over a given time.

Parameters
valuevalue to decay.
decayRateexponential decay constant; higher means faster. Useful range is approximately [1, 25]. Must be non-negative.
deltaTimetime step to decay over. Must be non-negative.
Returns
the updated value.

◆ expDecay() [4/4]

template<size_t N, typename T, typename Frequency, typename Duration>
requires (floating_point<T>)
GREM_ALWAYS_INLINE constexpr vec< N, T > grem::expDecay ( vec< N, T > value,
Frequency decayRate,
Duration deltaTime )
nodiscardconstexpr

Exponentially decay a vector towards zero over a given time.

Parameters
valuevector to decay.
decayRateexponential decay constant; higher means faster. Useful range is approximately [1, 25]. Must be non-negative.
deltaTimetime step to decay over. Must be non-negative.
Returns
the updated vector.

◆ operator~() [5/5]

ProfileFormats grem::operator~ ( ProfileFormat a)
constexprnoexcept

Get the complement of a profile format.

Parameters
athe format to invert.
Returns
a set containing all possible formats except the given format.

◆ operator|() [5/5]

ProfileFormats grem::operator| ( ProfileFormat a,
ProfileFormat b )
constexprnoexcept

Get the union of two profile formats.

Parameters
afirst format.
bsecond format.
Returns
a set containing both a and b.

◆ atomicThreadFence()

GREM_ALWAYS_INLINE void grem::atomicThreadFence ( MemoryOrder order)
noexcept

◆ atomicSignalFence()

GREM_ALWAYS_INLINE void grem::atomicSignalFence ( MemoryOrder order)
noexcept

◆ killDependency()

template<typename T>
GREM_ALWAYS_INLINE T grem::killDependency ( T y)
noexcept

◆ lock()

template<typename Lockable1, typename Lockable2, typename... LockableN>
GREM_ALWAYS_INLINE void grem::lock ( Lockable1 & lock1,
Lockable2 & lock2,
LockableN &... lockN )

◆ yield()

GREM_ALWAYS_INLINE void grem::yield ( )
noexcept

◆ sleepFor()

template<typename Rep, typename Period>
GREM_ALWAYS_INLINE void grem::sleepFor ( const DurationBase< Rep, Period > & duration)
noexcept

◆ sleepUntil()

template<typename Clock, typename Duration>
GREM_ALWAYS_INLINE void grem::sleepUntil ( const TimePointBase< Clock, Duration > & time)
noexcept

◆ countdown() [1/2]

template<typename Timer, typename DeltaTime>
bool grem::countdown ( Timer & timer,
DeltaTime deltaTime )
constexpr

Subtract time from a time value and then check if it reached 0.

Parameters
timertime value to update.
deltaTimetime delta to subtract from the timer.
Returns
true if the time value reached below or equal to 0, false otherwise.
Note
The time value is clamped to 0 when it is reached.
See also
countup()
countdownLoop()

◆ countdown() [2/2]

template<typename Timer, typename DeltaTime, typename TargetTime>
bool grem::countdown ( Timer & timer,
DeltaTime deltaTime,
TargetTime targetTime )
constexpr

Subtract time from a time value and then check if it reached a given target time value.

Parameters
timertime value to update.
deltaTimetime delta to subtract from the timer.
targetTimetarget time to count down towards.
Returns
true if the time value reached below or equal to the target time, false otherwise.
Note
The time value is clamped to the target time when the target is reached.
See also
countup()
countdownLoop()

◆ countup()

template<typename Timer, typename DeltaTime, typename TargetTime>
bool grem::countup ( Timer & timer,
DeltaTime deltaTime,
TargetTime targetTime )
constexpr

Add time to a time value and then check if it reached a given target time value.

Parameters
timertime value to update.
deltaTimetime delta to add to the timer.
targetTimetarget time to count up towards.
Returns
true if the time value reached above or equal to the target time, false otherwise.
Note
The time value is clamped to the target time when the target is reached.
See also
countdown()
countupLoop()

◆ countdownLoop() [1/2]

template<typename Timer, typename DeltaTime, typename Interval>
size_t grem::countdownLoop ( Timer & timer,
DeltaTime deltaTime,
Interval interval )
nodiscardconstexpr

Subtract time from a time value and then check how many times it reached 0 while looping back to a given time interval.

Parameters
timertime value to update.
deltaTimetime delta to subtract from the timer.
intervalloop interval duration.
Returns
the number of times that the time value reached below or equal to 0 and looped back around. This may be any non-negative integer, including 0.
Note
An interval duration of 0 results in the number 1 being returned every time.
See also
countdown()
countupLoop()

◆ countupLoop() [1/2]

template<typename Timer, typename DeltaTime, typename Interval>
size_t grem::countupLoop ( Timer & timer,
DeltaTime deltaTime,
Interval interval )
nodiscardconstexpr

Add time to a time value and then check how many times it reached a given time interval while looping back to 0.

Parameters
timertime value to update.
deltaTimetime delta to add to the timer.
intervalloop interval duration.
Returns
the number of times that the time value reached above or equal to the interval time and looped back around. This may be any non-negative integer, including 0.
Note
An interval duration of 0 results in the number 1 being returned every time.
See also
countup()
countdownLoop()

◆ countdownLoop() [2/2]

template<typename Timer, typename DeltaTime, typename Interval>
size_t grem::countdownLoop ( Timer & timer,
DeltaTime deltaTime,
Interval interval,
bool active )
nodiscardconstexpr

Update a countdown loop with a boolean trigger that determines whether the loop is active or not.

An inactive loop will continue counting down to 0 but will not loop back around to the interval time and will always return 0.

Parameters
timertime value to update.
deltaTimetime delta to subtract from the timer.
intervalloop interval duration.
activewhether the loop is currently active or not.
Returns
the number of times that the time value reached below or equal to 0 while active. This may be any non-negative integer, including 0.
Note
An interval duration of 0 results in the number 1 being returned every time when the loop is active.
Remarks
This function can be used to simulate something like the trigger mechanism of a fully automatic firearm firing from a closed bolt, since it will fire once as soon as it is activated and then keep firing at a fixed cyclic rate until the trigger is released, at which point the mechanism will continue to cycle into the closed position even if the trigger is not held, where it will then stop without firing the next round, and be ready to fire immediately when the trigger is activated again. Reactivating the trigger before the mechanism has fully cycled does not make it fire more quickly.
See also
countdownLoop()

◆ countupLoop() [2/2]

template<typename Timer, typename DeltaTime, typename Interval>
size_t grem::countupLoop ( Timer & timer,
DeltaTime deltaTime,
Interval interval,
bool active )
nodiscardconstexpr

Update a countup loop with a boolean trigger that determines whether the loop is active or not.

An inactive loop will reset itself to 0 and will always return 0.

Parameters
timertime value to update.
deltaTimetime delta to add to the timer.
intervalloop interval duration.
activewhether the loop is currently active or not.
Returns
the number of times that the time value reached above or equal to the interval time while active. This may be any non-negative integer, including 0.
Note
An interval duration of 0 results in the number 1 being returned every time when the loop is active.
Remarks
This function can be used to simulate something like the trigger mechanism of a hypothetical "railgun" that needs to be fully charged before it can fire. Activating the trigger starts the charging process, which can be canceled at any time by deactivating the trigger, which immediately resets the charge back to 0. The mechanism fires as soon as it is fully charged and then immediately starts charging the next round if the trigger is still held.
See also
countupLoop()

◆ getVersionName()

const char * grem::getVersionName ( )
nodiscardnoexcept

Get the current version string of the library.

Returns
a non-owning read-only pointer to a null-terminated statically allocated string containing the full current library version name in the format <major>.<minor>.<patch>. Note that the ABI version number is implied by the library version.
See also
getMajorVersion()
getMinorVersion()
getPatchVersion()
getABIVersion()

◆ getMajorVersion()

uint32_t grem::getMajorVersion ( )
nodiscardnoexcept

Get the current major version number of the library.

Returns
the current major version number.

◆ getMinorVersion()

uint32_t grem::getMinorVersion ( )
nodiscardnoexcept

Get the current minor version number of the library.

Returns
the current minor version number.

◆ getPatchVersion()

uint32_t grem::getPatchVersion ( )
nodiscardnoexcept

Get the current patch version number of the library.

Returns
the current patch version number.

◆ getABIVersion()

uint32_t grem::getABIVersion ( )
nodiscardnoexcept

Get the current ABI version number of the library.

Returns
the current ABI version number.

Variable Documentation

◆ EQUAL_TO

EqualTo grem::EQUAL_TO {}
inlineconstexpr

◆ NOT_EQUAL_TO

NotEqualTo grem::NOT_EQUAL_TO {}
inlineconstexpr

◆ LESS_THAN

LessThan grem::LESS_THAN {}
inlineconstexpr

◆ LESS_THAN_OR_EQUAL_TO

LessThanOrEqualTo grem::LESS_THAN_OR_EQUAL_TO {}
inlineconstexpr

◆ GREATER_THAN

GreaterThan grem::GREATER_THAN {}
inlineconstexpr

◆ GREATER_THAN_OR_EQUAL_TO

GreaterThanOrEqualTo grem::GREATER_THAN_OR_EQUAL_TO {}
inlineconstexpr

◆ ADD

Add grem::ADD {}
inlineconstexpr

◆ SUBTRACT

Subtract grem::SUBTRACT {}
inlineconstexpr

◆ MULTIPLY

Multiply grem::MULTIPLY {}
inlineconstexpr

◆ DIVIDE

Divide grem::DIVIDE {}
inlineconstexpr

◆ MODULO

Modulo grem::MODULO {}
inlineconstexpr

◆ NEGATE

Negate grem::NEGATE {}
inlineconstexpr

◆ linear_buffer_has_alternative_v

template<typename T, typename B>
bool grem::linear_buffer_has_alternative_v = linear_buffer_has_alternative<T, B>::value
inlineconstexpr

◆ linear_buffer_index_v

template<typename T, typename B>
std::size_t grem::linear_buffer_index_v = linear_buffer_index<T, B>::value
inlineconstexpr

◆ linear_buffer_size_v

template<typename B>
std::size_t grem::linear_buffer_size_v = linear_buffer_size<B>::value
inlineconstexpr

◆ nullopt

Nullopt grem::nullopt {0}
inlineconstexpr

Unit value representing an empty Optional.

◆ DYNAMIC_EXTENT

std::size_t grem::DYNAMIC_EXTENT = static_cast<std::size_t>(-1)
inlineconstexpr

◆ DYNAMIC_STRIDE

std::size_t grem::DYNAMIC_STRIDE = static_cast<std::size_t>(-1)
inlineconstexpr

◆ ignore

Ignore grem::ignore {}
inlineconstexpr

◆ variant_has_alternative_v

template<typename T, typename V>
bool grem::variant_has_alternative_v = variant_has_alternative<T, V>::value
inlineconstexpr

Check if a variant type has a given type as one of its possible alternatives.

Template Parameters
Talternative type to check for.
Vvariant type.

◆ variant_index_v

template<typename T, typename V>
std::size_t grem::variant_index_v = variant_index<T, V>::value
inlineconstexpr

Get the index of the variant alternative with a given type in a variant type.

Template Parameters
Ttype of the variant alternative to get the index of.
Vvariant type.

◆ variant_size_v

template<typename V>
std::size_t grem::variant_size_v = variant_size<V>::value
inlineconstexpr

Get the number of alternative types of a variant type.

Template Parameters
Vvariant type.

◆ BYTE_BITS

size_t grem::BYTE_BITS = CHAR_BIT
inlineconstexpr

◆ false16

bool16_t grem::false16 {false}
inlineconstexpr

◆ true16

bool16_t grem::true16 {true}
inlineconstexpr

◆ false32

bool32_t grem::false32 {false}
inlineconstexpr

◆ true32

bool32_t grem::true32 {true}
inlineconstexpr

◆ false64

bool64_t grem::false64 {false}
inlineconstexpr

◆ true64

bool64_t grem::true64 {true}
inlineconstexpr

◆ HOST_IS_LITTLE_ENDIAN

bool grem::HOST_IS_LITTLE_ENDIAN = std::endian::native == std::endian::little
inlineconstexpr

Whether the host system's native byte order is little-endian or not.

◆ HOST_IS_BIG_ENDIAN

bool grem::HOST_IS_BIG_ENDIAN = std::endian::native == std::endian::big
inlineconstexpr

Whether the host system's native byte order is big-endian or not.

◆ DEFER_LOCK

DeferLock grem::DEFER_LOCK {}
inlineconstexpr

◆ TRY_TO_LOCK

TryToLock grem::TRY_TO_LOCK {}
inlineconstexpr

◆ ADOPT_LOCK

AdoptLock grem::ADOPT_LOCK {}
inlineconstexpr