SA_Maths
Sapphire Suite's C++ Maths Library
Loading...
Searching...
No Matches
Sin.hpp
Go to the documentation of this file.
1// Copyright (c) 2023 Sapphire development team. All Rights Reserved.
2
3#pragma once
4
5#ifndef SAPPHIRE_MATHS_SIN_GUARD
6#define SAPPHIRE_MATHS_SIN_GUARD
7
9
20namespace SA
21{
22 namespace Maths
23 {
31 template <typename T>
32 constexpr T Sin(Rad<T> _in) noexcept
33 {
34 return std::sin(_in.Handle());
35 }
36
44 template <typename T>
45 constexpr Rad<T> ASin(T _in) noexcept
46 {
47 return std::asin(_in);
48 }
49 }
50}
51
60#endif // GUARD
Radian type implementation.
constexpr Rad< T > ASin(T _in) noexcept
Compute the arc-sine of the input.
Definition Sin.hpp:45
constexpr T Sin(Rad< T > _in) noexcept
Compute the sine of the input.
Definition Sin.hpp:32
Maths Radian type.
Definition Radian.hpp:36