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

Public Member Functions

auto call (x:&meshlib::Vector2d) const -> meshlib::Vector2d
auto linear_only (x:&meshlib::Vector2d) const -> meshlib::Vector2d
auto inverse () const -> meshlib::AffineXf2d

Static Public Member Functions

static auto new () -> meshlib::AffineXf2d
static auto construct (A:&meshlib::Matrix2d, b:&meshlib::Vector2d) -> meshlib::AffineXf2d
static auto translation (b:&meshlib::Vector2d) -> meshlib::AffineXf2d
static auto linear (A:&meshlib::Matrix2d) -> meshlib::AffineXf2d
static auto xf_around (A:&meshlib::Matrix2d, stable:&meshlib::Vector2d) -> meshlib::AffineXf2d

Public Attributes

meshlib::Matrix2d A
meshlib::Vector2d b

Detailed Description

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

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

Member Function Documentation

◆ call()

auto meshlib::AffineXf2d::call ( x:&meshlib::Vector2d ) const -> meshlib::Vector2d

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

Calls MR_AffineXf2d_call().

◆ construct()

auto meshlib::AffineXf2d::construct ( A:&meshlib::Matrix2d ,
b:&meshlib::Vector2d  ) -> meshlib::AffineXf2d
static

Generated from constructor MR::AffineXf2d::AffineXf2d.

Calls MR_AffineXf2d_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::AffineXf2d::inverse ( ) const -> meshlib::AffineXf2d

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

Calls MR_AffineXf2d_inverse().

◆ linear()

auto meshlib::AffineXf2d::linear ( A:&meshlib::Matrix2d ) -> meshlib::AffineXf2d
static

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

Calls MR_AffineXf2d_linear().

◆ linear_only()

auto meshlib::AffineXf2d::linear_only ( x:&meshlib::Vector2d ) const -> meshlib::Vector2d

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::AffineXf2d::linearOnly.

Calls MR_AffineXf2d_linearOnly().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_AffineXf2d_DefaultConstruct().

◆ translation()

auto meshlib::AffineXf2d::translation ( b:&meshlib::Vector2d ) -> meshlib::AffineXf2d
static

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

Calls MR_AffineXf2d_translation().

◆ xf_around()

auto meshlib::AffineXf2d::xf_around ( A:&meshlib::Matrix2d ,
stable:&meshlib::Vector2d  ) -> meshlib::AffineXf2d
static

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

Calls MR_AffineXf2d_xfAround().

Member Data Documentation

◆ A

meshlib::Matrix2d meshlib::AffineXf2d::A

◆ b

meshlib::Vector2d meshlib::AffineXf2d::b

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