JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::Vec2 Struct Reference

#include <JPLSpatial/Math/MinimalVec2.h>

Public Member Functions

JPL_INLINE constexpr float LengthSquared () const noexcept
 
JPL_INLINE constexpr float Length () const noexcept
 
JPL_INLINE constexpr Vec2Normalize () noexcept
 
JPL_INLINE constexpr Vec2 operator- () const noexcept
 
JPL_INLINE constexpr Vec2 operator- (const Vec2 &V) const noexcept
 
JPL_INLINE constexpr Vec2 operator+ (const Vec2 &V) const noexcept
 
template<typename Arg >
requires (std::is_arithmetic_v<Arg>)
JPL_INLINE constexpr Vec2 operator* (Arg Scale) const noexcept
 
template<typename Arg >
requires (std::is_arithmetic_v<Arg>)
JPL_INLINE constexpr Vec2 operator/ (Arg Scale) const noexcept
 
template<typename Arg >
requires (std::is_arithmetic_v<Arg>)
JPL_INLINE constexpr Vec2operator/= (Arg Scale) noexcept
 
JPL_INLINE constexpr void operator+= (const Vec2 &V) noexcept
 

Static Public Member Functions

static JPL_INLINE constexpr Vec2 Zero () noexcept
 

Public Attributes

float X
 
float Y
 

Member Function Documentation

◆ Length()

JPL_INLINE constexpr float JPL::Vec2::Length ( ) const
inlineconstexprnoexcept

◆ LengthSquared()

JPL_INLINE constexpr float JPL::Vec2::LengthSquared ( ) const
inlineconstexprnoexcept

◆ Normalize()

JPL_INLINE constexpr Vec2 & JPL::Vec2::Normalize ( )
inlineconstexprnoexcept

◆ operator*()

template<typename Arg >
requires (std::is_arithmetic_v<Arg>)
JPL_INLINE constexpr Vec2 JPL::Vec2::operator* ( Arg  Scale) const
inlineconstexprnoexcept

◆ operator+()

JPL_INLINE constexpr Vec2 JPL::Vec2::operator+ ( const Vec2 V) const
inlineconstexprnoexcept

◆ operator+=()

JPL_INLINE constexpr void JPL::Vec2::operator+= ( const Vec2 V)
inlineconstexprnoexcept

◆ operator-() [1/2]

JPL_INLINE constexpr Vec2 JPL::Vec2::operator- ( ) const
inlineconstexprnoexcept

◆ operator-() [2/2]

JPL_INLINE constexpr Vec2 JPL::Vec2::operator- ( const Vec2 V) const
inlineconstexprnoexcept

◆ operator/()

template<typename Arg >
requires (std::is_arithmetic_v<Arg>)
JPL_INLINE constexpr Vec2 JPL::Vec2::operator/ ( Arg  Scale) const
inlineconstexprnoexcept

◆ operator/=()

template<typename Arg >
requires (std::is_arithmetic_v<Arg>)
JPL_INLINE constexpr Vec2 & JPL::Vec2::operator/= ( Arg  Scale)
inlineconstexprnoexcept

◆ Zero()

static JPL_INLINE constexpr Vec2 JPL::Vec2::Zero ( )
inlinestaticconstexprnoexcept

Member Data Documentation

◆ X

float JPL::Vec2::X

◆ Y

float JPL::Vec2::Y

The documentation for this struct was generated from the following file: