~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Mod/Mesh/App/WildMagic4/Wm4Matrix4.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-07-16 18:37:41 UTC
  • Revision ID: james.westby@ubuntu.com-20090716183741-oww9kcxqrk991i1n
Tags: upstream-0.8.2237
ImportĀ upstreamĀ versionĀ 0.8.2237

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Wild Magic Source Code
 
2
// David Eberly
 
3
// http://www.geometrictools.com
 
4
// Copyright (c) 1998-2007
 
5
//
 
6
// This library is free software; you can redistribute it and/or modify it
 
7
// under the terms of the GNU Lesser General Public License as published by
 
8
// the Free Software Foundation; either version 2.1 of the License, or (at
 
9
// your option) any later version.  The license is available for reading at
 
10
// either of the locations:
 
11
//     http://www.gnu.org/copyleft/lgpl.html
 
12
//     http://www.geometrictools.com/License/WildMagicLicense.pdf
 
13
// The license applies to versions 0 through 4 of Wild Magic.
 
14
//
 
15
// Version: 4.0.0 (2006/06/28)
 
16
 
 
17
#include "Wm4FoundationPCH.h"
 
18
#include "Wm4Matrix4.h"
 
19
using namespace Wm4;
 
20
 
 
21
template<> const Matrix4<float> Matrix4<float>::ZERO(
 
22
    0.0f,0.0f,0.0f,0.0f,
 
23
    0.0f,0.0f,0.0f,0.0f,
 
24
    0.0f,0.0f,0.0f,0.0f,
 
25
    0.0f,0.0f,0.0f,0.0f);
 
26
template<> const Matrix4<float> Matrix4<float>::IDENTITY(
 
27
    1.0f,0.0f,0.0f,0.0f,
 
28
    0.0f,1.0f,0.0f,0.0f,
 
29
    0.0f,0.0f,1.0f,0.0f,
 
30
    0.0f,0.0f,0.0f,1.0f);
 
31
 
 
32
template<> const Matrix4<double> Matrix4<double>::ZERO(
 
33
    0.0,0.0,0.0,0.0,
 
34
    0.0,0.0,0.0,0.0,
 
35
    0.0,0.0,0.0,0.0,
 
36
    0.0,0.0,0.0,0.0);
 
37
template<> const Matrix4<double> Matrix4<double>::IDENTITY(
 
38
    1.0,0.0,0.0,0.0,
 
39
    0.0,1.0,0.0,0.0,
 
40
    0.0,0.0,1.0,0.0,
 
41
    0.0,0.0,0.0,1.0);