mathTypes.h
Engine/source/math/mathTypes.h
Public Functions
DECLARE_SCOPE(MathTypes )
DefineConsoleType(TypeAngAxisF , AngAxisF )
DefineConsoleType(TypeBox3F , Box3F )
DefineConsoleType(TypeEaseF , EaseF )
DefineConsoleType(TypeMatrixF , MatrixF )
DefineConsoleType(TypeMatrixPosition , MatrixF )
DefineConsoleType(TypeMatrixRotation , MatrixF )
DefineConsoleType(TypePoint2F , Point2F )
DefineConsoleType(TypePoint2I , Point2I )
DefineConsoleType(TypePoint3F , Point3F )
DefineConsoleType(TypePoint3I , Point3I )
DefineConsoleType(TypePoint4F , Point4F )
DefineConsoleType(TypeRectF , RectF )
DefineConsoleType(TypeRectI , RectI )
DefineConsoleType(TypeRotationF , RotationF )
DefineConsoleType(TypeTransformF , TransformF )
Detailed Description
Public Functions
DECLARE_SCOPE(MathTypes )
DECLARE_STRUCT(AngAxisF )
DECLARE_STRUCT(Box3F )
DECLARE_STRUCT(EaseF )
DECLARE_STRUCT(MatrixF )
DECLARE_STRUCT(Point2F )
DECLARE_STRUCT(Point2I )
DECLARE_STRUCT(Point3F )
DECLARE_STRUCT(Point3I )
DECLARE_STRUCT(Point4F )
DECLARE_STRUCT(RectF )
DECLARE_STRUCT(RectI )
DECLARE_STRUCT(RotationF )
DECLARE_STRUCT(TransformF )
DefineConsoleType(TypeAngAxisF , AngAxisF )
DefineConsoleType(TypeBox3F , Box3F )
DefineConsoleType(TypeEaseF , EaseF )
DefineConsoleType(TypeMatrixF , MatrixF )
DefineConsoleType(TypeMatrixPosition , MatrixF )
DefineConsoleType(TypeMatrixRotation , MatrixF )
DefineConsoleType(TypePoint2F , Point2F )
DefineConsoleType(TypePoint2I , Point2I )
DefineConsoleType(TypePoint3F , Point3F )
DefineConsoleType(TypePoint3I , Point3I )
DefineConsoleType(TypePoint4F , Point4F )
DefineConsoleType(TypeRectF , RectF )
DefineConsoleType(TypeRectI , RectI )
DefineConsoleType(TypeRotationF , RotationF )
DefineConsoleType(TypeTransformF , TransformF )
RegisterMathFunctions(void )
1 2//----------------------------------------------------------------------------- 3// Copyright (c) 2012 GarageGames, LLC 4// 5// Permission is hereby granted, free of charge, to any person obtaining a copy 6// of this software and associated documentation files (the "Software"), to 7// deal in the Software without restriction, including without limitation the 8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 9// sell copies of the Software, and to permit persons to whom the Software is 10// furnished to do so, subject to the following conditions: 11// 12// The above copyright notice and this permission notice shall be included in 13// all copies or substantial portions of the Software. 14// 15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 21// IN THE SOFTWARE. 22//----------------------------------------------------------------------------- 23 24#ifndef _MATHTYPES_H_ 25#define _MATHTYPES_H_ 26 27#ifndef _DYNAMIC_CONSOLETYPES_H_ 28 #include "console/dynamicTypes.h" 29#endif 30 31 32void RegisterMathFunctions(void); 33 34 35class Point2I; 36class Point2F; 37class Point3I; 38class Point3F; 39class Point4F; 40class RectI; 41class RectF; 42class MatrixF; 43class Box3F; 44class EaseF; 45class AngAxisF; 46class TransformF; 47class RotationF; 48 49DECLARE_SCOPE( MathTypes ); 50 51 52DECLARE_STRUCT( Point2I ); 53DECLARE_STRUCT( Point2F ); 54DECLARE_STRUCT( Point3I ); 55DECLARE_STRUCT( Point3F ); 56DECLARE_STRUCT( Point4F ); 57DECLARE_STRUCT( RectI ); 58DECLARE_STRUCT( RectF ); 59DECLARE_STRUCT( MatrixF ); 60DECLARE_STRUCT( AngAxisF ); 61DECLARE_STRUCT( TransformF ); 62DECLARE_STRUCT( Box3F ); 63DECLARE_STRUCT( EaseF ); 64DECLARE_STRUCT(RotationF); 65 66 67// Legacy console types. 68DefineConsoleType( TypePoint2I, Point2I ) 69DefineConsoleType( TypePoint2F, Point2F ) 70DefineConsoleType( TypePoint3I, Point3I ) 71DefineConsoleType( TypePoint3F, Point3F ) 72DefineConsoleType( TypePoint4F, Point4F ) 73DefineConsoleType( TypeRectI, RectI ) 74DefineConsoleType( TypeRectF, RectF ) 75DefineConsoleType( TypeMatrixF, MatrixF ) 76DefineConsoleType( TypeMatrixPosition, MatrixF) 77DefineConsoleType( TypeMatrixRotation, MatrixF ) 78DefineConsoleType( TypeAngAxisF, AngAxisF ) 79DefineConsoleType( TypeTransformF, TransformF ) 80DefineConsoleType( TypeBox3F, Box3F ) 81DefineConsoleType( TypeEaseF, EaseF ) 82DefineConsoleType(TypeRotationF, RotationF) 83 84#endif 85