Blender V4.3
SpaceTransform Struct Reference

#include <BLI_math_matrix.h>

Public Attributes

float local2target [4][4]
 
float target2local [4][4]
 

Detailed Description

SpaceTransform struct encapsulates all needed data to convert between two coordinate spaces (where conversion can be represented by a matrix multiplication).

A SpaceTransform is initialized using:

After that the following calls can be used:

  • Converts a coordinate in ob1 space to the corresponding ob2 space: #BLI_space_transform_apply(&data, co);
  • Converts a coordinate in ob2 space to the corresponding ob1 space: #BLI_space_transform_invert(&data, co);

Same concept as BLI_space_transform_apply and BLI_space_transform_invert, but no is normalized after conversion (and not translated at all!):

  • #BLI_space_transform_apply_normal(&data, no);
  • #BLI_space_transform_invert_normal(&data, no);

Definition at line 582 of file BLI_math_matrix.h.

Member Data Documentation

◆ local2target

float SpaceTransform::local2target[4][4]

Definition at line 583 of file BLI_math_matrix.h.

◆ target2local

float SpaceTransform::target2local[4][4]

Definition at line 584 of file BLI_math_matrix.h.


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