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

40 lines
1.1 KiB
C++

/// @ref ext_vector_float1
/// @file glm/ext/vector_float1.hpp
///
/// @defgroup ext_vector_float1 GLM_EXT_vector_float1
/// @ingroup ext
///
/// Exposes single-precision floating point vector type with one component.
///
/// Include <glm/ext/vector_float1.hpp> to use the features of this extension.
///
/// @see ext_vector_float1_precision extension.
/// @see ext_vector_double1 extension.
#pragma once
#include "../detail/type_vec1.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_vector_float1 extension included")
#endif
namespace glm
{
/// @addtogroup ext_vector_float1
/// @{
/// 1 components vector of single-precision floating-point numbers.
typedef vec<1, float, defaultp> vec1;
/// @}
}//namespace glm
#if GLM_CONFIG_CTOR_INIT == GLM_DISABLE
static_assert(std::is_trivially_default_constructible<glm::vec1>::value);
#endif
static_assert(std::is_trivially_copy_assignable<glm::vec1>::value);
static_assert(std::is_trivially_copyable<glm::vec1>::value);
static_assert(std::is_copy_constructible<glm::vec1>::value);
static_assert(glm::vec1::length() == 1);