Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/linmath/lvecBase2_src.cxx

Go to the documentation of this file.
00001 // Filename: lvecBase2_src.cxx
00002 // Created by:  drose (08Mar00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 TypeHandle FLOATNAME(LVecBase2)::_type_handle;
00020 
00021 const FLOATNAME(LVecBase2) FLOATNAME(LVecBase2)::_zero =
00022   FLOATNAME(LVecBase2)(0.0f, 0.0f);
00023 const FLOATNAME(LVecBase2) FLOATNAME(LVecBase2)::_unit_x =
00024   FLOATNAME(LVecBase2)(1.0f, 0.0f);
00025 const FLOATNAME(LVecBase2) FLOATNAME(LVecBase2)::_unit_y =
00026   FLOATNAME(LVecBase2)(0.0f, 1.0f);
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //     Function: LVecBase2::init_type
00030 //       Access: Public, Static
00031 //  Description:
00032 ////////////////////////////////////////////////////////////////////
00033 void FLOATNAME(LVecBase2)::
00034 init_type() {
00035   if (_type_handle == TypeHandle::none()) {
00036     // Format a string to describe the type.
00037     string name = "LVecBase2";
00038     name += FLOATTOKEN;
00039     register_type(_type_handle, name);
00040   }
00041 }

Generated on Fri May 2 00:40:14 2003 for Panda by doxygen1.3