Transformations over network work again, with undo and redo
This commit is contained in:
parent
b6a25280e6
commit
7e69688ca6
11 changed files with 128 additions and 33 deletions
|
|
@ -153,6 +153,14 @@ CoordSpaceHelper CoordSpaceHelper::other_coord_space_to_this_space(const CoordSp
|
|||
return toRet;
|
||||
}
|
||||
|
||||
bool CoordSpaceHelper::operator==(const CoordSpaceHelper& otherCoords) const {
|
||||
return rotation == otherCoords.rotation && pos == otherCoords.pos && inverseScale == otherCoords.inverseScale;
|
||||
}
|
||||
|
||||
bool CoordSpaceHelper::operator!=(const CoordSpaceHelper& otherCoords) const {
|
||||
return rotation != otherCoords.rotation || pos != otherCoords.pos || inverseScale != otherCoords.inverseScale;
|
||||
}
|
||||
|
||||
CoordSpaceHelper CoordSpaceHelper::other_coord_space_from_this_space(const CoordSpaceHelper& other) const {
|
||||
CoordSpaceHelper toRet;
|
||||
toRet.pos = from_space_world(other.pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue