UNPKG

@design-automation/mobius-inline-funcs

Version:
18 lines (17 loc) 665 B
import { TRay, TPlane } from '../../libs/common'; /** * Transforms a ray from a local coordinate system defined by plane "p" to the global coordinate system. * \n * Overloaded with 4 cases. * \n * - r can be one ray, and p can be one plane. * - r can be a list of rays, and p can be one plane. * - r can be one ray, and p can be a list of planes. * - r can be a list of rays, and p can be a list of planes. These lists should have the **same size**. * * * @param r The ray to be transformed. * @param p The source plane. * @returns A new ray. */ export declare function rayLtoG(r: TRay | TRay[], p: TPlane | TPlane[]): TRay | TRay[];