@daign/2d-graphics
Version:
Two dimensional graphics library that implements the daign-2d-pipeline.
33 lines (32 loc) • 1.05 kB
TypeScript
import { Box2, Matrix3, Vector2 } from '@daign/math';
import { StyledGraphicNode } from '../styledGraphicNode';
/**
* Class for a circle element defined by two points: the center and a point on the circle.
*/
export declare class TwoPointCircle extends StyledGraphicNode {
get center(): Vector2;
set center(position: Vector2);
get circlePoint(): Vector2;
set circlePoint(position: Vector2);
/**
* Constructor.
*/
constructor();
/**
* Calculate the radius after a given transformation.
* @param transformation - The transformation to apply.
* @returns The transformed radius.
*/
getRadiusTransformed(transformation: Matrix3): number;
/**
* Calculate the center after a given transformation.
* @param transformation - The transformation to apply.
* @returns The transformed center position.
*/
getCenterTransformed(transformation: Matrix3): Vector2;
/**
* Get the bounding box of the circle.
* @returns The bounding box.
*/
getBox(): Box2;
}