Searched refs:p (Results 1 – 2 of 2) sorted by relevance
67 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()
525 let p = (self.width() as i32 * y + x) as usize; in get_pixel() localVariable526 if p >= self.data().len() { in get_pixel()530 return self.data()[p]; in get_pixel()