39#ifndef Foam_Barycentric_H
40#define Foam_Barycentric_H
98 inline Barycentric(
const Cmpt& va,
const Cmpt& vb,
const Cmpt& vc);
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
Templated 3D Barycentric derived from VectorSpace. Has 4 components, one of which is redundant.
Barycentric(const Foam::zero)
Construct initialized to zero.
Barycentric(const Cmpt &va, const Cmpt &vb, const Cmpt &vc)
Construct from three components, calculate fourth component.
Barycentric()=default
Default construct.
static constexpr direction rank
Cmpt inner(const Barycentric< Cmpt > &b2) const
Scalar-product of this with another Barycentric.
Barycentric< label > labelType
Equivalent type of labels used for valid component indexing.
const Cmpt & b() const noexcept
Barycentric(const Cmpt &va, const Cmpt &vb, const Cmpt &vc, const Cmpt &vd)
Construct from components.
const Cmpt & d() const noexcept
const Cmpt & a() const noexcept
const Cmpt & c() const noexcept
Cmpt v_[Ncmpts]
The components of this vector space.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
const dimensionedScalar & D
A template class to specify if a data type is composed solely of Foam::label elements.
A template class to specify if a data type is composed solely of Foam::scalar elements.
A template class to specify that a data type can be considered as being contiguous in memory.