typos : intersects_ray() (#4201)

typos : intersects_ray()
This commit is contained in:
rustbasic 2024-03-21 20:10:02 +09:00 committed by GitHub
parent 2c9c5f0dea
commit 7d3d7ce0ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -641,7 +641,7 @@ impl MenuState {
if let Some(sub_menu) = self.current_submenu() {
if let Some(pos) = pointer.hover_pos() {
let rect = sub_menu.read().rect;
return rect.intesects_ray(pos, pointer.velocity().normalized());
return rect.intersects_ray(pos, pointer.velocity().normalized());
}
}
false

View File

@ -607,7 +607,7 @@ impl Rect {
impl Rect {
/// Does this Rect intersect the given ray (where `d` is normalized)?
pub fn intesects_ray(&self, o: Pos2, d: Vec2) -> bool {
pub fn intersects_ray(&self, o: Pos2, d: Vec2) -> bool {
let mut tmin = -f32::INFINITY;
let mut tmax = f32::INFINITY;