UNPKG

gs-json

Version:

gs-JSON is a domain agnostic unifying 3D file format for geometric and semantic modelling (hence the 'gs').

36 lines (35 loc) 1.61 kB
import * as gs from "../../gs-json"; /** * Calculate a set of xyz position on the circle/arc ir ellipse/arc. The number of points = length / resolution. * With resolution from 0.0001 to 0.5, 0.0001 being a higher resolution than 0.5 */ export declare function getRenderXYZs(obj: gs.IObj, resolution: number): gs.XYZ[]; /** * Calculate the length of the circle or arc. */ export declare function circleLength(circle: gs.ICircle): number; /** * Calculate the xyz position at parameter t on the circle or arc. The t parameter range is from 0 to 1. */ export declare function circleEvaluate(circle: gs.ICircle, t: number): gs.XYZ; /** * Project a point on a circle, and calculate the parameter t. */ export declare function circleEvaluatePoint(circle: gs.ICircle, point: gs.IPoint): number; /** * Calculate a set of xyz position on the circle or arc. The number of points = length / resolution. * With resolution from 0.0001 to 0.5, 0.0001 being a higher resolution than 0.5 */ export declare function circleGetRenderXYZs(circle: gs.ICircle, resolution: number): gs.XYZ[]; /** * Calculate the length of the conic curve. */ export declare function ellipseLength(curve: gs.IEllipse): number; /** * Calculate the xyz position at parameter t. The t parameter range is from 0 to 1. */ export declare function ellipseEvaluate(curve: gs.IEllipse, t: number): gs.XYZ; /** * Calculate a set of xyz position on the ellipse. The number of points = length / resolution. */ export declare function ellipseGetRenderXYZs(curve: gs.IEllipse, resolution: number): gs.XYZ[];