MXVK Vulkan Framework 0.35.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk::Mat1D Class Reference

Two-element column-vector storage used by 2x2 linear solves. More...

#include <mxvk/include/mxvk/mxvk_math.h>

Public Member Functions

constexpr Mat1D ()=default
 Construct a zero-initialized 2-element vector.
constexpr Mat1D ()=default
 Construct a zero-initialized 2-element vector.
constexpr Mat1D (float m0, float m1)
 Construct from explicit elements.
constexpr Mat1D (float m0, float m1)
 Construct from explicit elements.
void Set (float m0, float m1)
 Set both elements.
void Set (float m0, float m1)
 Set both elements.

Public Attributes

float mat [2] {}
 Matrix/vector elements.

Detailed Description

Two-element column-vector storage used by 2x2 linear solves.

Definition at line 493 of file mxvk_math.h.

Constructor & Destructor Documentation

◆ Mat1D() [1/4]

mxvk::Mat1D::Mat1D ( )
constexprdefault

Construct a zero-initialized 2-element vector.

◆ Mat1D() [2/4]

mxvk::Mat1D::Mat1D ( float m0,
float m1 )
inlineconstexpr

Construct from explicit elements.

Definition at line 502 of file mxvk_math.h.

502: mat{m0, m1} {}
float mat[2]
Matrix/vector elements.
Definition mxvk_math.h:496

◆ Mat1D() [3/4]

mxvk::Mat1D::Mat1D ( )
constexprdefault

Construct a zero-initialized 2-element vector.

◆ Mat1D() [4/4]

mxvk::Mat1D::Mat1D ( float m0,
float m1 )
inlineconstexpr

Construct from explicit elements.

Definition at line 523 of file mxvk_math_eigen.hpp.

523: mat{m0, m1} {}

Member Function Documentation

◆ Set() [1/2]

void mxvk::Mat1D::Set ( float m0,
float m1 )
inline

Set both elements.

Definition at line 505 of file mxvk_math.h.

505 {
506 mat[0] = m0;
507 mat[1] = m1;
508 }

◆ Set() [2/2]

void mxvk::Mat1D::Set ( float m0,
float m1 )
inline

Set both elements.

Definition at line 526 of file mxvk_math_eigen.hpp.

526 {
527 mat[0] = m0;
528 mat[1] = m1;
529 }

Member Data Documentation

◆ mat

float mxvk::Mat1D::mat {}

Matrix/vector elements.

Definition at line 496 of file mxvk_math.h.


The documentation for this class was generated from the following files: