MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::AffineXf2f:

Public Member Functions

auto call (x:&meshlib::Vector2f) const -> meshlib::Vector2f
auto linear_only (x:&meshlib::Vector2f) const -> meshlib::Vector2f
auto inverse () const -> meshlib::AffineXf2f

Static Public Member Functions

static auto new () -> meshlib::AffineXf2f
static auto construct (A:&meshlib::Matrix2f, b:&meshlib::Vector2f) -> meshlib::AffineXf2f
static auto translation (b:&meshlib::Vector2f) -> meshlib::AffineXf2f
static auto linear (A:&meshlib::Matrix2f) -> meshlib::AffineXf2f
static auto xf_around (A:&meshlib::Matrix2f, stable:&meshlib::Vector2f) -> meshlib::AffineXf2f

Public Attributes

meshlib::Matrix2f A
meshlib::Vector2f b

Detailed Description

affine transformation: y = A*x + b, where A in VxV, and b in V Generated from class MR::AffineXf2f.

Generated from struct MR::AffineXf2f. The fields are accessed directly.

Member Function Documentation

◆ call()

auto meshlib::AffineXf2f::call ( x:&meshlib::Vector2f ) const -> meshlib::Vector2f

application of the transformation to a point Generated from method MR::AffineXf2f::operator().

Calls MR_AffineXf2f_call().

◆ construct()

auto meshlib::AffineXf2f::construct ( A:&meshlib::Matrix2f ,
b:&meshlib::Vector2f  ) -> meshlib::AffineXf2f
static

Generated from constructor MR::AffineXf2f::AffineXf2f.

Calls MR_AffineXf2f_Construct(). The reference to the parameter A might be preserved in the constructed object. The reference to the parameter b might be preserved in the constructed object.

◆ inverse()

auto meshlib::AffineXf2f::inverse ( ) const -> meshlib::AffineXf2f

computes inverse transformation Generated from method MR::AffineXf2f::inverse.

Calls MR_AffineXf2f_inverse().

◆ linear()

auto meshlib::AffineXf2f::linear ( A:&meshlib::Matrix2f ) -> meshlib::AffineXf2f
static

creates linear-only transformation (without translation) Generated from method MR::AffineXf2f::linear.

Calls MR_AffineXf2f_linear().

◆ linear_only()

auto meshlib::AffineXf2f::linear_only ( x:&meshlib::Vector2f ) const -> meshlib::Vector2f

applies only linear part of the transformation to given vector (e.g. to normal) skipping adding shift (b) for example if this is a rigid transformation, then only rotates input vector Generated from method MR::AffineXf2f::linearOnly.

Calls MR_AffineXf2f_linearOnly().

◆ new()

auto meshlib::AffineXf2f::new ( ) -> meshlib::AffineXf2f
static

Constructs an empty (default-constructed) instance.

Calls MR_AffineXf2f_DefaultConstruct().

◆ translation()

auto meshlib::AffineXf2f::translation ( b:&meshlib::Vector2f ) -> meshlib::AffineXf2f
static

creates translation-only transformation (with identity linear component) Generated from method MR::AffineXf2f::translation.

Calls MR_AffineXf2f_translation().

◆ xf_around()

auto meshlib::AffineXf2f::xf_around ( A:&meshlib::Matrix2f ,
stable:&meshlib::Vector2f  ) -> meshlib::AffineXf2f
static

creates transformation with given linear part with given stable point Generated from method MR::AffineXf2f::xfAround.

Calls MR_AffineXf2f_xfAround().

Member Data Documentation

◆ A

meshlib::Matrix2f meshlib::AffineXf2f::A

◆ b

meshlib::Vector2f meshlib::AffineXf2f::b

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