HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields | Friends
tt::mat::S Struct Reference

#include <TTauri/Foundation/mat.hpp>

Public Member Functions

 S (vec rhs) noexcept
 
 S (float x, float y, float z=1.0f) noexcept
 
 operator mat () const noexcept
 Create a scaling matrix.
 

Static Public Member Functions

static S uniform2D (vec haystack, vec needle) noexcept
 Get a scaling matrix to uniformly scale a needle to fit in the haystack.
 

Data Fields

vec s
 

Friends

S operator* (S const &lhs, S const &rhs) noexcept
 
vec operator* (S const &lhs, vec const &rhs) noexcept
 
tt_force_inline friend aarect operator* (S const &lhs, aarect const &rhs) noexcept
 Matrix/Vector multiplication.
 
rect operator* (S const &lhs, rect const &rhs) noexcept
 
S operator~ (S const &rhs) noexcept
 Invert matrix.
 

Detailed Description

Optimized scale matrix.

Member Function Documentation

◆ operator mat()

tt::mat::S::operator mat ( ) const
inlinenoexcept

Create a scaling matrix.

◆ uniform2D()

static S tt::mat::S::uniform2D ( vec haystack,
vec needle )
inlinestaticnoexcept

Get a scaling matrix to uniformly scale a needle to fit in the haystack.

Friends And Related Symbol Documentation

◆ operator*

tt_force_inline friend aarect operator* ( S const & lhs,
aarect const & rhs )
friend

Matrix/Vector multiplication.

Used for transforming vectors.

◆ operator~

S operator~ ( S const & rhs)
friend

Invert matrix.


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