rust/integral-geometry/src/lib.rs
changeset 14141 477faa7b8a48
parent 14140 3078123e84ea
child 14142 11202097584f
--- a/rust/integral-geometry/src/lib.rs	Tue Nov 06 00:02:23 2018 +0100
+++ b/rust/integral-geometry/src/lib.rs	Tue Nov 06 16:23:43 2018 +0300
@@ -83,8 +83,8 @@
     }
 
     #[inline]
-    pub fn ray_to(self, end: Point) -> Ray {
-        self.line_to(end).to_ray()
+    pub fn ray_with_dir(self, direction: Point) -> Ray {
+        Ray::new(self, direction)
     }
 
     #[inline]