feat(contact): animate outro
This commit is contained in:
8
app/utils/math.ts
Normal file
8
app/utils/math.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export type Point = [x: number, y: number];
|
||||
export type Rect = [x: number, y: number, width: number, height: number];
|
||||
|
||||
export function rectContains(rect: Rect, point: Point): boolean {
|
||||
const [x, y, width, height] = rect;
|
||||
const [px, py] = point;
|
||||
return px >= x && px <= x + width && py >= y && py <= y + height;
|
||||
}
|
||||
Reference in New Issue
Block a user