@bitbybit-dev/core
Version:
Bit By Bit Developers Core CAD API to Program Geometry
56 lines (55 loc) • 1.83 kB
TypeScript
import { ContextBase } from "../../context";
import * as Inputs from "../../inputs/inputs";
import { MathBitByBit } from "@bitbybit-dev/base";
/**
* Contains various methods for nurbs ellipse.
* These methods wrap around Verbnurbs library that you can find here http://verbnurbs.com/.
* Thanks Peter Boyer for his work.
*/
export declare class VerbCurveEllipse {
private readonly context;
private readonly math;
constructor(context: ContextBase, math: MathBitByBit);
/**
* Creates the ellipse Nurbs curve
* @param inputs Ellipse parameters
* @returns Ellipse Nurbs curve
*/
createEllipse(inputs: Inputs.Verb.EllipseParametersDto): any;
/**
* Creates the ellipse arc Nurbs curve
* @param inputs Ellipse arc parameters
* @returns Ellipse arc Nurbs curve
*/
createArc(inputs: Inputs.Verb.EllipseArcParametersDto): any;
/**
* Gets the center point of the ellipse or an arc
* @param inputs The arc or the ellipse Nurbs curve
* @returns Point
*/
center(inputs: Inputs.Verb.EllipseDto): number[];
/**
* Gets the max angle of the arc in degrees
* @param inputs Arc
* @returns Max angle in degrees
*/
maxAngle(inputs: Inputs.Verb.EllipseDto): number;
/**
* Gets the min angle of the arc in degrees
* @param inputs Arc
* @returns Min angle in degrees
*/
minAngle(inputs: Inputs.Verb.EllipseDto): number;
/**
* Gets the x angle of the arc or an ellipse
* @param inputs Ellipse or an arc
* @returns X axis vector
*/
xAxis(inputs: Inputs.Verb.EllipseDto): number[];
/**
* Gets the y angle of the arc or an ellipse
* @param inputs Ellipse or an arc
* @returns Y axis vector
*/
yAxis(inputs: Inputs.Verb.EllipseDto): number[];
}