226 os <<
'(' <<
vec[0] <<
',' <<
vec[1] <<
',' <<
vec[2] <<
')';
671#include "EBGeometry_NamespaceFooter.hpp"
673#include "EBGeometry_VecImplem.hpp"
Two-dimensional vector class with arithmetic operators.
Definition EBGeometry_Vec.hpp:31
constexpr T length() const noexcept
Compute length of vector.
~Vec2T()=default
Destructor (does nothing)
static constexpr Vec2T< T > min() noexcept
Return minimum possible representative vector.
constexpr T length2() const noexcept
Compute square of vector.
static constexpr Vec2T< T > one() noexcept
Return av vector with x = y = 1.
static constexpr Vec2T< T > max() noexcept
Return maximum possible representative vector.
Vec2T()
Default constructor. Sets the vector to the zero vector.
T x
First component in the vector.
Definition EBGeometry_Vec.hpp:61
constexpr Vec2T(const T &a_x, const T &a_y)
Full constructor.
T y
Second component in the vector.
Definition EBGeometry_Vec.hpp:66
constexpr T dot(const Vec2T &a_other) const noexcept
Dot product operator.
static constexpr Vec2T< T > zero() noexcept
Return av vector with x = y = 0.
Vec2T(const Vec2T &u) noexcept
Copy constructor.
static constexpr Vec2T< T > infinity() noexcept
Return a vector with inf components.
Three-dimensional vector class with arithmetic operators.
Definition EBGeometry_Vec.hpp:218
Vec3T() noexcept
Default constructor. Sets the vector to the zero vector.