nitro-renderer/src/room/utils/PointMath.ts

19 lines
456 B
TypeScript
Raw Normal View History

2021-03-17 03:02:09 +01:00
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 _Str_15193(k: Point, _arg_2: Point): Point
{
return new Point((k.x - _arg_2.x), (k.y - _arg_2.y));
}
public static _Str_6038(k: Point, _arg_2: number): Point
{
return new Point((k.x * _arg_2), (k.y * _arg_2));
}
}