UNPKG

@obliczeniowo/elementary

Version:
41 lines (40 loc) 1.61 kB
import { Point2D, Point3D } from '@obliczeniowo/elementary/classes'; import { DrawingContextInterface } from '@obliczeniowo/elementary/drawing'; export declare class Diagram3D { protected svg: SVGSVGElement; protected xAxisLength: number; protected yAxisLength: number; protected zAxisLength: number; protected xAxisAngle: number; protected yAxisAngle: number; protected zAxisAngle: number; protected xScale: number; protected yScale: number; protected zScale: number; protected correctionAngle: number; protected offsetLongitude: number; protected offsetLatitude: number; private pLatitude; protected get latitude(): number; protected set latitude(value: number); private pLongitude; protected get longitude(): number; protected set longitude(value: number); protected anchor: Point2D; protected dx: number; protected dy: number; private pzValues; get zValues(): number[][]; set zValues(value: number[][]); constructor(svg: SVGSVGElement); diagramPosToDrawingArea(p3d: Point3D): Point2D; pointsAngle(x1: number, y1: number, x2: number, y2: number): number; setDiagramAngles(latitude: number, longitude: number): void; setLatitude(latitude: number): void; setLongitude(longitude: number): void; setAxisAngles(): void; protected drawAxis(dc: DrawingContextInterface, offset?: Point3D): void; protected drawNet(dc: DrawingContextInterface, offset?: Point3D): void; draw(dc: DrawingContextInterface): void; mouse(x: number, y: number, dc: DrawingContextInterface): void; }