Loading...
Searching...
No Matches
Go to the documentation of this file.
14#ifndef PLASK_VECTOR_LATERAL_HPP
15#define PLASK_VECTOR_LATERAL_HPP
30 constexpr const T&
tran()
const {
return c0; }
33 constexpr const T&
vert()
const {
return c1; }
52 template <
typename OtherT>
60 template <
int other_dim,
typename OtherT>
74 template <
typename T0,
typename T1>
75 constexpr LateralVec(
const std::pair<T0,T1>& comp):
c0(comp.first),
c1(comp.second) {}
82 template <
typename InputIteratorType>
119 template <
typename OtherT>
128 template <
typename OtherT,
typename SuprType>
137 template <
typename OtherT>
146 template <
typename OtherT>
176 template <
typename OtherT>
178 return LateralVec<
decltype(this->c0 + other.c0)>(
c0 + other.c0,
c1 + other.c1);
197 template <
typename OtherT>
199 return LateralVec<
decltype(this->c0 - other.c0)>(
c0 - other.c0,
c1 - other.c1);
218 template <
typename OtherT>
283 template <
typename OtherT>
327 template<
class OT>
inline
341template <
typename T1,
typename T2>
343 return ::plask::fma(
v1.c0,
v2.c0,
v1.c1 *
v2.c1);
351template <
typename T1,
typename T2>
353 return ::plask::fma(
v1.c0,
v2.c1, -
v1.c1 *
v2.c0);
362template <
typename T,
typename OtherT>
374 template <
typename T,
typename OtherT>