lullaby/contrib/deform/deform_system.cc
// Returns the standard SQT given the transform matrix and a nullable
// world_from_parent_mat
Returns the standard SQT given the transform matrix and a nullable
world_from_parent_mat
Returns the standard SQT given the transform matrix and a nullable world_from_parent_mat
Sqt CalculateLocalSqt(const mathfu::mat4& world_from_entity_mat,
                      const mathfu::mat4* world_from_parent_mat) {
  if (world_from_parent_mat) {
    return CalculateSqtFromMatrix(world_from_parent_mat->Inverse() *
                                  world_from_entity_mat);
  } else {
    return CalculateSqtFromMatrix(world_from_entity_mat);
  }
}
Sqt CalculateLocalSqt ( const mathfu :: mat4 & world_from_entity_mat , const mathfu :: mat4 * world_from_parent_mat ) { if ( world_from_parent_mat ) { return CalculateSqtFromMatrix ( world_from_parent_mat -> Inverse ( ) * world_from_entity_mat ) ; } else { return CalculateSqtFromMatrix ( world_from_entity_mat ) ; } }
Returns the standard SQT given the transform matrix and a nullable
world_from_parent_mat
Returns the standard SQT given the transform matrix and a nullable world_from_parent_mat