nitro-renderer/packages/utils/src/PointMath.ts
2024-03-19 21:53:17 -04:00

20 lines
444 B
TypeScript

import { Point } from 'pixi.js';
export class PointMath
{
public static sum(k: Point, _arg_2: Point): Point
{
return new Point((k.x + _arg_2.x), (k.y + _arg_2.y));
}
public static sub(k: Point, _arg_2: Point): Point
{
return new Point((k.x - _arg_2.x), (k.y - _arg_2.y));
}
public static mul(k: Point, _arg_2: number): Point
{
return new Point((k.x * _arg_2), (k.y * _arg_2));
}
}