Home
last modified time | relevance | path

Searched refs:p (Results 1 – 2 of 2) sorted by relevance

/StarryEngine/starry_toolkit/src/base/
H A Drect.rs67 pub fn contains(&self, p: Vector2) -> bool { in contains()
68 p.x >= self.x in contains()
69 && p.x < self.x + self.width as i32 in contains()
70 && p.y >= self.y in contains()
71 && p.y < self.y + self.height as i32 in contains()
/StarryEngine/starry_client/src/base/
H A Drenderer.rs525 let p = (self.width() as i32 * y + x) as usize; in get_pixel() localVariable
526 if p >= self.data().len() { in get_pixel()
530 return self.data()[p]; in get_pixel()