Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
Public Member Functions | Public Attributes | List of all members
box2d::Mat22 Struct Reference

A 2-by-2 matrix. More...

#include <Math.hpp>

Public Member Functions

 Mat22 () noexcept=default
 The default constructor does nothing (for performance). More...
 
constexpr Mat22 (const Vec2 c1, const Vec2 c2) noexcept
 Construct this matrix using columns. More...
 
constexpr Mat22 (RealNum a11, RealNum a12, RealNum a21, RealNum a22) noexcept
 Construct this matrix using scalars. More...
 

Public Attributes

Vec2 ex
 
Vec2 ey
 

Detailed Description

A 2-by-2 matrix.

Stored in column-major order.

Note
This structure is likely about 16-bytes large.

Constructor & Destructor Documentation

◆ Mat22() [1/3]

box2d::Mat22::Mat22 ( )
defaultnoexcept

The default constructor does nothing (for performance).

◆ Mat22() [2/3]

constexpr box2d::Mat22::Mat22 ( const Vec2  c1,
const Vec2  c2 
)
inlinenoexcept

Construct this matrix using columns.

◆ Mat22() [3/3]

constexpr box2d::Mat22::Mat22 ( RealNum  a11,
RealNum  a12,
RealNum  a21,
RealNum  a22 
)
inlinenoexcept

Construct this matrix using scalars.

Member Data Documentation

◆ ex

Vec2 box2d::Mat22::ex

◆ ey

Vec2 box2d::Mat22::ey

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