39#ifndef Foam_Barycentric2D_H
40#define Foam_Barycentric2D_H
89 inline Barycentric2D(
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 2D Barycentric derived from VectorSpace. Has 3 components, one of which is redundant.
Barycentric2D()=default
Default construct.
static constexpr direction rank
Barycentric2D< label > labelType
Equivalent type of labels used for valid component indexing.
const Cmpt & b() const noexcept
Cmpt inner(const Barycentric2D< Cmpt > &b2) const
Scalar-product of this with another Barycentric2D.
bool outside() const
True if any coordinate is negative.
const Cmpt & a() const noexcept
Barycentric2D(const Cmpt &va, const Cmpt &vb)
Construct from two components, calculating third component.
Barycentric2D(const Cmpt &va, const Cmpt &vb, const Cmpt &vc)
Construct from components.
Barycentric2D(const Foam::zero)
Construct initialized to zero.
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 ...
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.