MXVK Vulkan Framework 0.24.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 572 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 581 of file mxvk_math.h.

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

◆ 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 616 of file mxvk_math_eigen.hpp.

616: mat{m0, m1} {}

Member Function Documentation

◆ Set() [1/2]

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

Set both elements.

Definition at line 584 of file mxvk_math.h.

584 {
585 mat[0] = m0;
586 mat[1] = m1;
587 }

◆ Set() [2/2]

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

Set both elements.

Definition at line 619 of file mxvk_math_eigen.hpp.

619 {
620 mat[0] = m0;
621 mat[1] = m1;
622 }

Member Data Documentation

◆ mat

float mxvk::Mat1D::mat {}

Matrix/vector elements.

Definition at line 575 of file mxvk_math.h.

575{};

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