Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
math_exceptions.h
Go to the documentation of this file.
1#pragma once
2
3#include <Common/exceptions.h>
4
5#include <stdexcept>
6#include <string>
7
8namespace ph::math
9{
10
13class MathException : public RuntimeException
14{
15public:
16 using RuntimeException::RuntimeException;
17
18 std::string whatStr() const override;
19};
20
24{
25public:
26 using MathException::MathException;
27};
28
29// In-header Implementations:
30
31inline std::string MathException::whatStr() const
32{
33 return std::string(what());
34}
35
36}// end namespace ph::math
Error on the color-related functionalities.
Definition math_exceptions.h:24
General exception thrown on error related to math functionalities.
Definition math_exceptions.h:14
std::string whatStr() const override
Definition math_exceptions.h:31
Math functions and utilities.
Definition TransformInfo.h:10