Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed Nov 29, 2023
1 parent 1b3cd54 commit 59f4866
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions four-bar/src/fb/fb3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,18 +191,18 @@ impl SFourBar {
Self { unnorm: self.unnorm.clone(), ..Default::default() }
}

/// Get the sphere center.
/// Get the sphere center. (`ox`, `oy`, `oz`)
pub fn sc(&self) -> [f64; 3] {
[self.unnorm.ox, self.unnorm.oy, self.unnorm.oz]
}

/// Get the sphere center and radius.
/// Get the sphere center and radius. (`ox`, `oy`, `oz`, `r`)
pub fn scr(&self) -> [f64; 4] {
let fb = &self.unnorm;
[fb.ox, fb.oy, fb.oz, fb.r]
}

/// Get the sphere radius.
/// Get the sphere radius. (`r`)
pub fn sr(&self) -> f64 {
self.unnorm.r
}
Expand Down

0 comments on commit 59f4866

Please sign in to comment.