]>
git.proxmox.com Git - rustc.git/blob - src/test/incremental/change_private_fn_cc/auxiliary/point.rs
6 fn distance_squared(this
: &Point
) -> f32 {
8 return this
.x
+ this
.y
;
11 return this
.x
* this
.x
+ this
.y
* this
.y
;
15 pub fn distance_from_origin(&self) -> f32 {
16 distance_squared(self).sqrt()
21 pub fn translate(&mut self, x
: f32, y
: f32) {