1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 
7 #ifndef MOZILLA_GFX_MATRIX_FWD_H_
8 #define MOZILLA_GFX_MATRIX_FWD_H_
9 
10 // Forward declare enough things to define the typedefs |Matrix| and
11 // |Matrix4x4|.
12 
13 namespace mozilla {
14 namespace gfx {
15 
16 template <class T>
17 class BaseMatrix;
18 
19 typedef float Float;
20 typedef BaseMatrix<Float> Matrix;
21 
22 typedef double Double;
23 typedef BaseMatrix<Double> MatrixDouble;
24 
25 struct UnknownUnits;
26 
27 template <class SourceUnits, class TargetUnits, class T = Float>
28 class Matrix4x4Typed;
29 template <class SourceUnits, class TargetUnits>
30 class Matrix4x4TypedFlagged;
31 
32 typedef Matrix4x4Typed<UnknownUnits, UnknownUnits> Matrix4x4;
33 typedef Matrix4x4Typed<UnknownUnits, UnknownUnits, double> Matrix4x4Double;
34 typedef Matrix4x4TypedFlagged<UnknownUnits, UnknownUnits> Matrix4x4Flagged;
35 
36 }  // namespace gfx
37 }  // namespace mozilla
38 
39 #endif
40