00001 // Filename: lvecBase3_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(LVecBase3)::_type_handle; 00020 00021 const FLOATNAME(LVecBase3) FLOATNAME(LVecBase3)::_zero = 00022 FLOATNAME(LVecBase3)(0.0f, 0.0f, 0.0f); 00023 const FLOATNAME(LVecBase3) FLOATNAME(LVecBase3)::_unit_x = 00024 FLOATNAME(LVecBase3)(1.0f, 0.0f, 0.0f); 00025 const FLOATNAME(LVecBase3) FLOATNAME(LVecBase3)::_unit_y = 00026 FLOATNAME(LVecBase3)(0.0f, 1.0f, 0.0f); 00027 const FLOATNAME(LVecBase3) FLOATNAME(LVecBase3)::_unit_z = 00028 FLOATNAME(LVecBase3)(0.0f, 0.0f, 1.0f); 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: LVecBase3::init_type 00032 // Access: Public, Static 00033 // Description: 00034 //////////////////////////////////////////////////////////////////// 00035 void FLOATNAME(LVecBase3):: 00036 init_type() { 00037 if (_type_handle == TypeHandle::none()) { 00038 // Format a string to describe the type. 00039 string name = "LVecBase3"; 00040 name += FLOATTOKEN; 00041 register_type(_type_handle, name); 00042 } 00043 }