Skip to content

Commit

Permalink
refactor(vectors): renaming and minor fixes at point-on-ray
Browse files Browse the repository at this point in the history
  • Loading branch information
nkint committed Oct 1, 2020
1 parent 0b04b80 commit 36467e4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/vectors/src/point-at.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

0 comments on commit 36467e4

Please sign in to comment.