4jcraft/thirdparty/include/android/glm/ext/vector_float2.hpp
2026-04-05 07:41:20 +00:00

27 lines
777 B
C++

/// @ref core
/// @file glm/ext/vector_float2.hpp
#pragma once
#include "../detail/type_vec2.hpp"
namespace glm
{
/// @addtogroup core_vector
/// @{
/// 2 components vector of single-precision floating-point numbers.
///
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 4.1.5 Vectors</a>
typedef vec<2, float, defaultp> vec2;
/// @}
}//namespace glm
#if GLM_CONFIG_CTOR_INIT == GLM_DISABLE
static_assert(std::is_trivially_default_constructible<glm::vec2>::value);
#endif
static_assert(std::is_trivially_copy_assignable<glm::vec2>::value);
static_assert(std::is_trivially_copyable<glm::vec2>::value);
static_assert(std::is_copy_constructible<glm::vec2>::value);
static_assert(glm::vec2::length() == 2);