Run prettier
This commit is contained in:
@ -102,7 +102,7 @@ export class Point {
|
||||
snap(x: number, y: number) {
|
||||
return new Point(
|
||||
lerp(x, Math.floor(this.x), Math.ceil(this.x)),
|
||||
lerp(y, Math.floor(this.y), Math.ceil(this.y))
|
||||
lerp(y, Math.floor(this.y), Math.ceil(this.y)),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -141,7 +141,6 @@ export class Rect {
|
||||
return `Rect(${this.top},${this.size})`;
|
||||
}
|
||||
|
||||
|
||||
offset(offset: Point) {
|
||||
return new Rect(this.top.offset(offset), this.size);
|
||||
}
|
||||
@ -303,4 +302,4 @@ export function lerp(amt: number, lo: number, hi: number) {
|
||||
return hi;
|
||||
}
|
||||
return lo + (hi - lo) * amt;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user