SA_Maths
Sapphire Suite's C++ Maths Library
Loading...
Searching...
No Matches
Cos.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_COS_GUARD
6#define SAPPHIRE_MATHS_COS_GUARD
7
9
20namespace SA
21{
22 namespace Maths
23 {
31 template <typename T>
32 constexpr T Cos(Rad<T> _in) noexcept
33 {
34 return std::cos(_in.Handle());
35 }
36
37
45 template <typename T>
46 constexpr Rad<T> ACos(T _in) noexcept
47 {
48 return std::acos(_in);
49 }
50 }
51}
52
61#endif // GUARD
constexpr T Cos(Rad< T > _in) noexcept
Compute the cosine of the input.
Definition Cos.hpp:32
constexpr Rad< T > ACos(T _in) noexcept
Compute the arc-cosine of the input.
Definition Cos.hpp:46
Radian type implementation.
Maths Radian type.
Definition Radian.hpp:36