rattrig namespace

Classes

class RatTrig
A class for saying hello in multiple languages.

Enums

enum class LanguageCode { EN, DE, ES, FR }

Functions

template<typename T>
auto archimedes(const T& q_1, const T& q_2, const T& q_3) -> T constexpr
Calculates the quadrea of a triangle using Archimedes' formula.

Enum documentation

enum class rattrig::LanguageCode

Language codes to be used with the RatTrig class

Function documentation

template<typename T>
T rattrig::archimedes(const T& q_1, const T& q_2, const T& q_3) constexpr

Calculates the quadrea of a triangle using Archimedes' formula.

Parameters
q_1 in Represents the length of the first side of the triangle.
q_2 in Represents the length of the second side of the triangle.
q_3 in The parameter q_3 represents the length of the third side of the triangle.
Returns The function archimedes returns the area of a triangle computed using Archimedes' formula, given the lengths of the 3 sides.

Takes the lengths of the triangle's three sides as parameters q1, q2, q3. Returns the quadrea calculation result.

Can also be used to check if a quadraple of lengths Q1, Q2, Q3, Q4 is on a circle.