mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-20 23:36:52 +00:00
Support pos sub
This commit is contained in:
1 parent
14f0a3ce05
commit
7d9cfb6ff9
1 file changed
+4
@@ -34,4 +34,8 @@ public class IrisPosition
|
||||
public IrisPosition add(IrisPosition relativePosition) {
|
||||
return new IrisPosition(relativePosition.x+x, relativePosition.y+y, relativePosition.z + z);
|
||||
}
|
||||
|
||||
public IrisPosition sub(IrisPosition relativePosition) {
|
||||
return new IrisPosition(x-relativePosition.x, y-relativePosition.y, z-relativePosition.z);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user