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

Read-only variant of Vec2View for const Vectors. More...

#include <vector.hpp>

Public Member Functions

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

Public Attributes

const Vectorv
 

Detailed Description

Read-only variant of Vec2View for const Vectors.

Definition at line 183 of file vector.hpp.

Member Function Documentation

◆ size()

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

Definition at line 186 of file vector.hpp.

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

◆ x()

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

Definition at line 187 of file vector.hpp.

References v.

◆ y()

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

Definition at line 188 of file vector.hpp.

References v.

Member Data Documentation

◆ v

const Vector& num::Vec2ConstView::v

Definition at line 184 of file vector.hpp.

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


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