UNPKG

gs-json

Version:

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

28 lines (27 loc) 1.31 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; /** * Calculate the xyz tangent at parameter t on the circle or arc. The t parameter range is from 0 to 1. */ export declare function circleEvaluateTangent(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[];