setFrom method
Set this to the values of the other Transform2D.
Implementation
void setFrom(Transform2D other) {
_isBatchUpdating = true;
_angle = other._angle;
_cosAngle = other._cosAngle;
_sinAngle = other._sinAngle;
_recalculateRotation = other._recalculateRotation;
_position.setFrom(other._position);
_scale.setFrom(other._scale);
_offset.setFrom(other._offset);
_isBatchUpdating = false;
_recalculate = true;
notifyListeners();
}