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

Public Member Functions

auto assign_from_another (_other:&meshlib::Matrix_float) -> &mut meshlib::Matrix_float
auto call_mut_2 (row:usize, col:usize) -> &mut f32
auto call_mut_1 (i:usize) -> &mut f32
auto call_2 (row:usize, col:usize) const -> &f32
auto call_1 (i:usize) const -> &f32
auto get_sub_matrix (startRow:usize, nRow:usize, startCol:usize, nCol:usize) -> meshlib::Owned< meshlib::Matrix_float >
auto transposed () const -> meshlib::Owned< meshlib::Matrix_float >
void fill (val:f32)
void clear ()
auto get_rows_num () const -> usize
auto get_cols_num () const -> usize
auto data () const -> &meshlib::std_vector_float
void resize (dims:&meshlib::Vector2i)
auto dims () const -> &meshlib::Vector2i
auto size () const -> usize
auto to_pixel_id (pos:&meshlib::Vector2i) const -> meshlib::PixelId
auto to_index (pos:&meshlib::Vector2i) const -> usize
auto upcast_to_rect_indexer () const -> &meshlib::RectIndexer
auto upcast_to_rect_indexer_mut () -> &mut meshlib::RectIndexer

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Matrix_float >
static auto construct_from_another (_other:&meshlib::Matrix_float) -> meshlib::Owned< meshlib::Matrix_float >
static auto construct (numRows:usize, numCols:usize) -> meshlib::Owned< meshlib::Matrix_float >
static auto static_downcast_from_rect_indexer (object:&meshlib::RectIndexer) -> &Self
static auto static_downcast_from_rect_indexer_mut (object:&mut meshlib::RectIndexer) -> &mut Self
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

Row-major matrix with T values Generated from class MR::Matrix<float>. Base classes: Direct: (non-virtual) MR::RectIndexer

Generated from class MR::Matrix<float>. Heap-allocated instances are held in Owned<Matrix_float>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::Matrix_float::assign_from_another ( _other:&meshlib::Matrix_float ) -> &mut meshlib::Matrix_float

Generated from method MR::Matrix<float>::operator=.

Calls MR_Matrix_float_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ call_1()

auto meshlib::Matrix_float::call_1 ( i:usize ) const -> &f32

Generated from method MR::Matrix<float>::operator().

Calls MR_Matrix_float_call_1().

◆ call_2()

auto meshlib::Matrix_float::call_2 ( row:usize ,
col:usize  ) const -> &f32

Generated from method MR::Matrix<float>::operator().

Calls MR_Matrix_float_call_2().

◆ call_mut_1()

auto meshlib::Matrix_float::call_mut_1 ( i:usize ) -> &mut f32

Generated from method MR::Matrix<float>::operator().

Calls MR_Matrix_float_call_mut_1().

◆ call_mut_2()

auto meshlib::Matrix_float::call_mut_2 ( row:usize ,
col:usize  ) -> &mut f32

main access method Generated from method MR::Matrix<float>::operator().

Calls MR_Matrix_float_call_mut_2().

◆ clear()

void meshlib::Matrix_float::clear ( )

Generated from method MR::Matrix<float>::clear.

Calls MR_Matrix_float_clear().

◆ construct()

auto meshlib::Matrix_float::construct ( numRows:usize ,
numCols:usize  ) -> meshlib::Owned< meshlib::Matrix_float >
static

Generated from constructor MR::Matrix<float>::Matrix.

Calls MR_Matrix_float_Construct(). The reference to the parameter numRows might be preserved in the constructed object. The reference to the parameter numCols might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::Matrix_float::construct_from_another ( _other:&meshlib::Matrix_float ) -> meshlib::Owned< meshlib::Matrix_float >
static

Generated from constructor MR::Matrix<float>::Matrix.

Calls MR_Matrix_float_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ data()

auto meshlib::Matrix_float::data ( ) const -> &meshlib::std_vector_float

Generated from method MR::Matrix<float>::data.

Calls MR_Matrix_float_data().

◆ dims()

auto meshlib::Matrix_float::dims ( ) const -> &meshlib::Vector2i

Generated from method MR::Matrix<float>::dims.

Calls MR_Matrix_float_dims().

◆ fill()

void meshlib::Matrix_float::fill ( val:f32 )

Generated from method MR::Matrix<float>::fill.

Calls MR_Matrix_float_fill().

◆ get_cols_num()

auto meshlib::Matrix_float::get_cols_num ( ) const -> usize

Generated from method MR::Matrix<float>::getColsNum.

Calls MR_Matrix_float_getColsNum().

◆ get_rows_num()

auto meshlib::Matrix_float::get_rows_num ( ) const -> usize

Generated from method MR::Matrix<float>::getRowsNum.

Calls MR_Matrix_float_getRowsNum().

◆ get_sub_matrix()

auto meshlib::Matrix_float::get_sub_matrix ( startRow:usize ,
nRow:usize ,
startCol:usize ,
nCol:usize  ) -> meshlib::Owned< meshlib::Matrix_float >

Generated from method MR::Matrix<float>::getSubMatrix.

Calls MR_Matrix_float_getSubMatrix().

◆ new()

auto meshlib::Matrix_float::new ( ) -> meshlib::Owned< meshlib::Matrix_float >
static

Constructs an empty (default-constructed) instance.

Calls MR_Matrix_float_DefaultConstruct().

◆ resize()

void meshlib::Matrix_float::resize ( dims:&meshlib::Vector2i )

Generated from method MR::Matrix<float>::resize.

Calls MR_Matrix_float_resize().

◆ size()

auto meshlib::Matrix_float::size ( ) const -> usize

Generated from method MR::Matrix<float>::size.

Calls MR_Matrix_float_size().

◆ static_downcast_from_rect_indexer()

auto meshlib::Matrix_float::static_downcast_from_rect_indexer ( object:&meshlib::RectIndexer ) -> &Self
static

Static downcast from the base class MR::RectIndexer.

Calls MR_Matrix_float_StaticDowncastFrom_MR_RectIndexer(). Undefined behavior if the object isn't actually a Matrix_float.

Note
This function is unsafe.

◆ static_downcast_from_rect_indexer_mut()

auto meshlib::Matrix_float::static_downcast_from_rect_indexer_mut ( object:&mut meshlib::RectIndexer ) -> &mut Self
static

Static downcast from the base class MR::RectIndexer.

Calls MR_Matrix_float_MutableStaticDowncastFrom_MR_RectIndexer(). Undefined behavior if the object isn't actually a Matrix_float.

Note
This function is unsafe.

◆ to_index()

auto meshlib::Matrix_float::to_index ( pos:&meshlib::Vector2i ) const -> usize

Generated from method MR::Matrix<float>::toIndex.

Calls MR_Matrix_float_toIndex().

◆ to_pixel_id()

auto meshlib::Matrix_float::to_pixel_id ( pos:&meshlib::Vector2i ) const -> meshlib::PixelId

Generated from method MR::Matrix<float>::toPixelId.

Calls MR_Matrix_float_toPixelId().

◆ transposed()

auto meshlib::Matrix_float::transposed ( ) const -> meshlib::Owned< meshlib::Matrix_float >

computes transposed matrix Generated from method MR::Matrix<float>::transposed.

Calls MR_Matrix_float_transposed().

◆ upcast_to_rect_indexer()

auto meshlib::Matrix_float::upcast_to_rect_indexer ( ) const -> &meshlib::RectIndexer

Upcasts to the base class MR::RectIndexer.

Calls MR_Matrix_float_UpcastTo_MR_RectIndexer().

◆ upcast_to_rect_indexer_mut()

auto meshlib::Matrix_float::upcast_to_rect_indexer_mut ( ) -> &mut meshlib::RectIndexer

Upcasts to the base class MR::RectIndexer.

Calls MR_Matrix_float_MutableUpcastTo_MR_RectIndexer().


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