239 } |
239 } |
240 |
240 |
241 impl ManifoldPoint for OnCube { |
241 impl ManifoldPoint for OnCube { |
242 type Tangent = Point; |
242 type Tangent = Point; |
243 |
243 |
244 fn exp(&self, tangent : &Self::Tangent) -> Self { |
244 fn exp(self, tangent : &Self::Tangent) -> Self { |
245 let mut face = self.face; |
245 let mut face = self.face; |
246 let mut point = self.point + tangent; |
246 let mut point = self.point + tangent; |
247 loop { |
247 loop { |
248 let next_face = face.find_crossing(&point); |
248 let next_face = face.find_crossing(&point); |
249 if next_face == face { |
249 if next_face == face { |