|
||||
File indexing completed on 2024-09-27 07:03:42
0001 /////////////////////////////////////////////////////////////////////////// 0002 // 0003 // Copyright 2010 0004 // 0005 // This file is part of starlight. 0006 // 0007 // starlight is free software: you can redistribute it and/or modify 0008 // it under the terms of the GNU General Public License as published by 0009 // the Free Software Foundation, either version 3 of the License, or 0010 // (at your option) any later version. 0011 // 0012 // starlight is distributed in the hope that it will be useful, 0013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0015 // GNU General Public License for more details. 0016 // 0017 // You should have received a copy of the GNU General Public License 0018 // along with starlight. If not, see <http://www.gnu.org/licenses/>. 0019 // 0020 /////////////////////////////////////////////////////////////////////////// 0021 // 0022 // File and Version Information: 0023 // $Rev:: 28 $: revision of last commit 0024 // $Author:: bgrube $: author of last commit 0025 // $Date:: 2010-12-10 18:30:01 +0000 #$: date of last commit 0026 // 0027 // Description: 0028 // 0029 // 0030 // 0031 /////////////////////////////////////////////////////////////////////////// 0032 0033 0034 #include "vector3.h" 0035 0036 0037 vector3::vector3() 0038 { 0039 _vec[0] = 0; 0040 _vec[1] = 0; 0041 _vec[2] = 0; 0042 } 0043 0044 0045 vector3::vector3(double x, double y, double z) 0046 { 0047 _vec[0] = x; 0048 _vec[1] = y; 0049 _vec[2] = z; 0050 } 0051 0052 0053 vector3::~vector3() 0054 { } 0055 0056 0057 void vector3::SetVector(double x, double y, double z) 0058 { 0059 _vec[0] = x; 0060 _vec[1] = y; 0061 _vec[2] = z; 0062 } 0063 0064 0065 void vector3::SetVector(double *vec) 0066 { 0067 _vec[0] = vec[0]; 0068 _vec[1] = vec[1]; 0069 _vec[2] = vec[2]; 0070 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |