UtilitiesFunctionsmagDir2DVersion: 4.1.0magDir2D CallablemagDir2D(a: Point2D): { dir: { x: number; y: number }; mag: number }Parametersa: Point2DReturns { dir: { x: number; y: number }; mag: number }dir: { x: number; y: number }x: numbery: numbermag: number