UNPKG

@daign/2d-graphics

Version:

Two dimensional graphics library that implements the daign-2d-pipeline.

27 lines (26 loc) 745 B
import { Matrix3, Vector2 } from '@daign/math'; import { StyledGraphicNode } from '../styledGraphicNode'; /** * Class for a circle element defined by center point and fixed radius. */ export declare class FixedRadiusCircle extends StyledGraphicNode { radius: number; /** * Getter for the center position. */ get center(): Vector2; /** * Setter for the center position. */ set center(position: Vector2); /** * Constructor. */ constructor(); /** * Calculate the center after a given transformation. * @param transformation - The transformation to apply. * @returns The transformed center position. */ getCenterTransformed(transformation: Matrix3): Vector2; }