82 lines
1.2 KiB
C++
82 lines
1.2 KiB
C++
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
|
// This file is part of the "Nazara Engine - Math module"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#pragma once
|
|
|
|
#ifndef NAZARA_MATH_ENUMS_HPP
|
|
#define NAZARA_MATH_ENUMS_HPP
|
|
|
|
#include <Nazara/Core/Algorithm.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
enum class AngleUnit
|
|
{
|
|
Degree,
|
|
Radian
|
|
};
|
|
|
|
enum class BoxCorner
|
|
{
|
|
FarLeftBottom,
|
|
FarLeftTop,
|
|
FarRightBottom,
|
|
FarRightTop,
|
|
NearLeftBottom,
|
|
NearLeftTop,
|
|
NearRightBottom,
|
|
NearRightTop,
|
|
|
|
Max = NearRightTop
|
|
};
|
|
|
|
constexpr std::size_t BoxCornerCount = UnderlyingCast(BoxCorner::Max) + 1;
|
|
|
|
enum class Extend
|
|
{
|
|
Finite,
|
|
Infinite,
|
|
Null,
|
|
|
|
Max = Null
|
|
};
|
|
|
|
enum class FrustumPlane
|
|
{
|
|
Bottom,
|
|
Far,
|
|
Left,
|
|
Near,
|
|
Right,
|
|
Top,
|
|
|
|
Max = Top
|
|
};
|
|
|
|
constexpr std::size_t FrustumPlaneCount = UnderlyingCast(FrustumPlane::Max) + 1;
|
|
|
|
enum class IntersectionSide
|
|
{
|
|
Inside,
|
|
Intersecting,
|
|
Outside,
|
|
|
|
Max = Outside
|
|
};
|
|
|
|
enum class RectCorner
|
|
{
|
|
LeftBottom,
|
|
LeftTop,
|
|
RightBottom,
|
|
RightTop,
|
|
|
|
Max = RightTop
|
|
};
|
|
|
|
constexpr std::size_t RectCornerCount = UnderlyingCast(RectCorner::Max) + 1;
|
|
}
|
|
|
|
#endif // NAZARA_MATH_ENUMS_HPP
|