numerics 0.1.0
Loading...
Searching...
No Matches
num::Vec2View Struct Reference

Non-owning view of a flat vector as \((x_i,y_i)\) pairs. More...

#include <vector.hpp>

Public Member Functions

idx size () const noexcept
 
realx (idx i) noexcept
 
real x (idx i) const noexcept
 
realy (idx i) noexcept
 
real y (idx i) const noexcept
 

Public Attributes

Vectorv
 

Detailed Description

Non-owning view of a flat vector as \((x_i,y_i)\) pairs.

Definition at line 150 of file vector.hpp.

Member Function Documentation

◆ size()

idx num::Vec2View::size ( ) const
inlinenoexcept

Definition at line 153 of file vector.hpp.

References num::BasicVector< T >::size(), and v.

◆ x() [1/2]

real num::Vec2View::x ( idx  i) const
inlinenoexcept

Definition at line 156 of file vector.hpp.

References v.

◆ x() [2/2]

real & num::Vec2View::x ( idx  i)
inlinenoexcept

Definition at line 155 of file vector.hpp.

References v.

◆ y() [1/2]

real num::Vec2View::y ( idx  i) const
inlinenoexcept

Definition at line 158 of file vector.hpp.

References v.

◆ y() [2/2]

real & num::Vec2View::y ( idx  i)
inlinenoexcept

Definition at line 157 of file vector.hpp.

References v.

Member Data Documentation

◆ v

Vector& num::Vec2View::v

Definition at line 151 of file vector.hpp.

Referenced by size(), x(), x(), y(), and y().


The documentation for this struct was generated from the following file: