From 36467e48cbf263a18c851ea4a0dd08f5bdc14969 Mon Sep 17 00:00:00 2001 From: alberto Date: Thu, 1 Oct 2020 18:50:21 +0200 Subject: [PATCH] refactor(vectors): renaming and minor fixes at point-on-ray --- packages/vectors/src/point-at.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/vectors/src/point-at.ts b/packages/vectors/src/point-at.ts index dd5378483d..f07721b95c 100644 --- a/packages/vectors/src/point-at.ts +++ b/packages/vectors/src/point-at.ts @@ -10,29 +10,29 @@ import { maddN2, maddN3 } from "./maddn"; * @param rayOrigin - * @param dist - */ -export function pointAtOnRay( +export const pointOnRay = ( out: Vec | null, - rayDir: Vec, rayOrigin: Vec, + rayDir: Vec, dist: number -) { +) => { return maddN(out, rayDir, dist, rayOrigin); -} +}; -export function pointAtOnRay2( +export const pointOnRay2 = ( out: Vec | null, - rayDir: Vec, rayOrigin: Vec, + rayDir: Vec, dist: number -) { +) => { return maddN2(out, rayDir, dist, rayOrigin); -} +}; -export function pointAtOnRay3( +export const pointOnRay3 = ( out: Vec | null, - rayDir: Vec, rayOrigin: Vec, + rayDir: Vec, dist: number -) { +) => { return maddN3(out, rayDir, dist, rayOrigin); -} +};