|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Lightweight 3D vector and matrix classes for geometric calculations. More...
#include "math/Precision.hpp"#include "math/SIMDConfig.hpp"#include <array>#include <cmath>#include <stdexcept>#include <type_traits>#include "math/detail/Vector3SIMD.hpp"

Go to the source code of this file.
Classes | |
| class | correlation::math::Vector3< T > |
| A lightweight, constexpr, stack-based 3D vector. More... | |
| class | correlation::math::Matrix3< T > |
| A lightweight, constexpr, stack-based 3x3 matrix. More... | |
Namespaces | |
| namespace | correlation |
| namespace | correlation::math |
| Defines universal mathematical and physical constants. | |
Typedefs | |
| using | correlation::math::Vector3R = Vector3<real_t> |
| Precision-configurable aliases for 3D vectors and 3x3 matrices. | |
| using | correlation::math::Matrix3R = Matrix3<real_t> |
Functions | |
| template<typename T> | |
| constexpr T | correlation::math::dot (const Vector3< T > &vec_a, const Vector3< T > &vec_b) noexcept |
| Computes the dot product of two vectors. | |
| template<typename T> | |
| constexpr Vector3< T > | correlation::math::cross (const Vector3< T > &vec_a, const Vector3< T > &vec_b) noexcept |
| Computes the cross product of two 3D vectors. | |
| Vector3< double > | correlation::math::cross (const Vector3< double > &vec_a, const Vector3< double > &vec_b) noexcept |
| Computes the cross product of two 3D vectors. | |
| template<typename T> | |
| constexpr T | correlation::math::normSq (const Vector3< T > &vec_a) noexcept |
| Computes the squared vector norm (length). | |
| template<typename T> | |
| constexpr T | correlation::math::norm (const Vector3< T > &vec_a) noexcept |
| Computes the vector norm (length). | |
| template<typename T> | |
| constexpr T | correlation::math::distance (const Vector3< T > &vec_a, const Vector3< T > &vec_b) noexcept |
| Computes the distance between two vectors. | |
| template<typename T> | |
| constexpr Vector3< T > | correlation::math::normalize (const Vector3< T > &vec_a) |
| Normalizes the given vector. | |
| template<typename T> | |
| constexpr T | correlation::math::determinant (const Matrix3< T > &matrix) noexcept |
| Computes the determinant of a 3x3 matrix. | |
| template<typename T> | |
| constexpr Matrix3< T > | correlation::math::invert (const Matrix3< T > &matrix) |
| Computes the inverse of a 3x3 matrix. | |
| template<typename T> | |
| constexpr Matrix3< T > | correlation::math::transpose (const Matrix3< T > &matrix) noexcept |
| Computes the transpose of a 3x3 matrix. | |
| template<typename T, typename U> | |
| constexpr auto | correlation::math::operator* (const Matrix3< T > &matrix, const Vector3< U > &vector) noexcept |
| Matrix-vector multiplication. | |
| template<typename T> | |
| constexpr Matrix3< T > | correlation::math::operator* (const Matrix3< T > &mat_a, const Matrix3< T > &mat_b) noexcept |
| Matrix-matrix multiplication. | |
| template<typename Scalar, typename T> requires std::is_arithmetic_v<Scalar> | |
| constexpr Vector3< T > | correlation::math::operator* (Scalar scalar, const Vector3< T > &vec) noexcept |
| Scalar-vector multiplication. | |
Lightweight 3D vector and matrix classes for geometric calculations.