setTransformationMatrices method
void
setTransformationMatrices([
- Matrix4? camera,
- Matrix4? gizmos
- Set values in transformation object
cameraTransformation to be applied to the cameragizmosTransformation to be applied to gizmos
Implementation
void setTransformationMatrices([Matrix4? camera, Matrix4? gizmos]) {
if (camera != null) {
if (_transformation['camera'] != null) {
_transformation['camera']!.setFrom(camera);
}
else {
_transformation['camera'] = camera.clone();
}
}
else {
_transformation.remove('camera');
}
if (gizmos != null) {
if (_transformation['gizmos'] != null) {
_transformation['gizmos']!.setFrom(gizmos);
}
else {
_transformation['gizmos'] = gizmos.clone();
}
}
else {
_transformation.remove('gizmos');
}
}