opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
maths
vector_functions.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
liboscar/maths/scalar.h
>
4
#include <
liboscar/maths/vector.h
>
5
6
#include <cstddef>
7
8
namespace
osc
9
{
10
template
<Scalar T,
size_t
N>
11
constexpr
const
T
*
value_ptr
(
const
Vector<T, N>
&
vec
)
12
{
13
return
vec
.data();
14
}
15
16
template
<Scalar T,
size_t
N>
17
constexpr
T
*
value_ptr
(
Vector<T, N>
&
vec
)
18
{
19
return
vec
.data();
20
}
21
}
osc::Vector
Definition
vector.h:63
osc
Definition
custom_decoration_generator.h:5
osc::Key::T
@ T
osc::to
constexpr U to(T &&value)
Definition
conversion.h:56
osc::value_ptr
constexpr const T * value_ptr(const Rgba< T > &rgba)
Definition
rgba.h:180
scalar.h
vector.h
Generated by
1.9.8