diff -r 3078123e84ea -r 477faa7b8a48 rust/integral-geometry/src/lib.rs --- 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]