typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
読み取り中…
検索中…
一致する文字列を見つけられません
typeset::Matrix 構造体

2x3 アフィン行列(行優先) x' = xx*x + xy*y + dx y' = yx*x + yy*y + dy [詳解]

#include <typeset/geom.hpp>

公開メンバ関数

bool isIdentity () const
 
Mat2 linear () const
 
float determinant () const
 
Point apply (Point p) const
 
Point applyVector (Point v) const
 

静的公開メンバ関数

static Matrix identity ()
 
static Matrix translation (Pt tx, Pt ty)
 
static Matrix rotation (float radians)
 回転(ラジアン。y-down なので画面上では時計回りが正)
 
static Matrix scaling (float sx, float sy)
 
static Matrix fromMat2 (const Mat2 &r, Pt tx=0.0f, Pt ty=0.0f)
 

公開変数類

float xx = 1.0f
 
float xy = 0.0f
 
float dx = 0.0f
 
float yx = 0.0f
 
float yy = 1.0f
 
float dy = 0.0f
 

詳解

2x3 アフィン行列(行優先) x' = xx*x + xy*y + dx y' = yx*x + yy*y + dy

geom.hpp68 行目に定義があります。

関数詳解

◆ identity()

static Matrix typeset::Matrix::identity ( )
inlinestatic

geom.hpp72 行目に定義があります。

◆ translation()

static Matrix typeset::Matrix::translation ( Pt  tx,
Pt  ty 
)
inlinestatic

geom.hpp73 行目に定義があります。

参照先 dx, dy.

◆ rotation()

static Matrix typeset::Matrix::rotation ( float  radians)
inlinestatic

回転(ラジアン。y-down なので画面上では時計回りが正)

geom.hpp77 行目に定義があります。

参照先 xx, xy, yx, yy.

◆ scaling()

static Matrix typeset::Matrix::scaling ( float  sx,
float  sy 
)
inlinestatic

geom.hpp84 行目に定義があります。

参照先 xx, yy.

◆ fromMat2()

static Matrix typeset::Matrix::fromMat2 ( const Mat2 r,
Pt  tx = 0.0f,
Pt  ty = 0.0f 
)
inlinestatic

geom.hpp87 行目に定義があります。

参照先 dx, dy, typeset::Mat2::xx, xx, typeset::Mat2::xy, xy, typeset::Mat2::yx, yx, typeset::Mat2::yy, yy.

◆ isIdentity()

bool typeset::Matrix::isIdentity ( ) const
inline

geom.hpp94 行目に定義があります。

参照先 dx, dy, xx, xy, yx, yy.

◆ linear()

Mat2 typeset::Matrix::linear ( ) const
inline

geom.hpp98 行目に定義があります。

参照先 xx, xy, yx, yy.

◆ determinant()

float typeset::Matrix::determinant ( ) const
inline

geom.hpp99 行目に定義があります。

参照先 xx, xy, yx, yy.

◆ apply()

Point typeset::Matrix::apply ( Point  p) const
inline

geom.hpp100 行目に定義があります。

参照先 dx, dy, typeset::Point::x, xx, xy, typeset::Point::y, yx, yy.

◆ applyVector()

Point typeset::Matrix::applyVector ( Point  v) const
inline

geom.hpp103 行目に定義があります。

参照先 typeset::Point::x, xx, xy, typeset::Point::y, yx, yy.

メンバ詳解

◆ xx

float typeset::Matrix::xx = 1.0f

geom.hpp69 行目に定義があります。

参照元 apply(), applyVector(), determinant(), fromMat2(), isIdentity(), linear(), rotation(), scaling().

◆ xy

float typeset::Matrix::xy = 0.0f

geom.hpp69 行目に定義があります。

参照元 apply(), applyVector(), determinant(), fromMat2(), isIdentity(), linear(), rotation().

◆ dx

float typeset::Matrix::dx = 0.0f

geom.hpp69 行目に定義があります。

参照元 apply(), fromMat2(), isIdentity(), translation().

◆ yx

float typeset::Matrix::yx = 0.0f

geom.hpp70 行目に定義があります。

参照元 apply(), applyVector(), determinant(), fromMat2(), isIdentity(), linear(), rotation().

◆ yy

float typeset::Matrix::yy = 1.0f

geom.hpp70 行目に定義があります。

参照元 apply(), applyVector(), determinant(), fromMat2(), isIdentity(), linear(), rotation(), scaling().

◆ dy

float typeset::Matrix::dy = 0.0f

geom.hpp70 行目に定義があります。

参照元 apply(), fromMat2(), isIdentity(), translation().


この構造体詳解は次のファイルから抽出されました: