Line data Source code
1 0 : /* 2 : 3 : OOSpatialReference.h 4 : 5 : Formal protocol for objects whose transformation matrix (and thus, position 6 : and orientation) can be observed. Currently used for cameras, potentially 7 : useful for stuff like positional audio (instead of OOSoundReferencePoint). 8 : 9 : 10 : Oolite 11 : Copyright (C) 2004-2013 Giles C Williams and contributors 12 : 13 : This program is free software; you can redistribute it and/or 14 : modify it under the terms of the GNU General Public License 15 : as published by the Free Software Foundation; either version 2 16 : of the License, or (at your option) any later version. 17 : 18 : This program is distributed in the hope that it will be useful, 19 : but WITHOUT ANY WARRANTY; without even the implied warranty of 20 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 : GNU General Public License for more details. 22 : 23 : You should have received a copy of the GNU General Public License 24 : along with this program; if not, write to the Free Software 25 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 26 : MA 02110-1301, USA. 27 : 28 : */ 29 : 30 : #import "OOCocoa.h" 31 : #import "OOMaths.h" 32 : #import "Entity.h" 33 : 34 : 35 : @protocol OOSpatialReference <NSObject> 36 : 37 0 : - (OOMatrix) transformationMatrix; 38 : 39 : @end 40 : 41 : 42 : @interface Entity (OOSpatialReference) <OOSpatialReference> 43 : @end