66 Copyright (c) 2009 Scientific Computing and Imaging Institute,
77 University of Utah.
88
9-
9+
1010 Permission is hereby granted, free of charge, to any person obtaining a
1111 copy of this software and associated documentation files (the "Software"),
1212 to deal in the Software without restriction, including without limitation
6969 v2.safe_normalize ();
7070}
7171
72- #ifdef SCIRUN4_CODE_TO_BE_ENABLED_LATER
7372std::string
7473Vector::get_string () const
7574{
@@ -78,8 +77,6 @@ Vector::get_string() const
7877 return (oss.str ());
7978}
8079
81-
82-
8380bool
8481Vector::check_find_orthogonal (Vector& v1, Vector& v2) const
8582{
@@ -104,7 +101,7 @@ Vector::normal() const
104101{
105102 Vector v (*this );
106103 v.normalize ();
107- return v;
104+ return v;
108105}
109106
110107Vector
@@ -115,8 +112,6 @@ Vector::safe_normal() const
115112 return v;
116113}
117114
118-
119-
120115std::istream& operator >>( std::istream& is, Vector& v)
121116{
122117 double x, y, z;
@@ -126,8 +121,6 @@ std::istream& operator>>( std::istream& is, Vector& v)
126121 return is;
127122}
128123
129-
130-
131124void
132125Vector::rotz90 (const int c)
133126{
@@ -160,14 +153,13 @@ Vector::rotz90(const int c)
160153 break ;
161154 }
162155}
163- #endif
164156
165157void
166158SCIRun::Core::Geometry::Pio (Piostream& stream, Vector& p)
167159{
168160 stream.begin_cheap_delim ();
169161 double x,y,z;
170- if (! stream.reading ())
162+ if (! stream.reading ())
171163 {
172164 x = p.x ();
173165 y = p.y ();
@@ -176,7 +168,7 @@ SCIRun::Core::Geometry::Pio(Piostream& stream, Vector& p)
176168 Pio (stream, x);
177169 Pio (stream, y);
178170 Pio (stream, z);
179- if (stream.reading ())
171+ if (stream.reading ())
180172 {
181173 p.x (x);
182174 p.y (y);
@@ -186,8 +178,8 @@ SCIRun::Core::Geometry::Pio(Piostream& stream, Vector& p)
186178}
187179
188180
189- const std::string&
190- SCIRun::Vector_get_h_file_path ()
181+ const std::string&
182+ SCIRun::Vector_get_h_file_path ()
191183{
192184 static const std::string path (TypeDescription::cc_to_h (__FILE__));
193185 return path;
@@ -202,5 +194,3 @@ const TypeDescription* SCIRun::Core::Geometry::get_type_description(Vector*)
202194 }
203195 return td;
204196}
205-
206-
0 commit comments