import { PositionalLight } from "./PositionalLight"; import type { RayHandler } from "../RayHandler"; import { RGBA } from "../utils"; /** * Light shaped as a circle's sector with given radius, direction and angle * *
Extends {@link PositionalLight} * * @author kalle_h */ export declare class ConeLight extends PositionalLight { coneDegree: number; /** * Creates light shaped as a circle's sector with given radius, direction and arc angle * * @param rayHandler * not {@code null} instance of RayHandler * @param rays * number of rays - more rays make light to look more realistic * but will decrease performance, can't be less than MIN_RAYS * @param color * color, set to {@code null} to use the default color * @param distance * distance of cone light, soft shadow length is set to distance * 0.1 * @param x * axis position * @param y * axis position * @param directionDegree * direction of cone light * @param coneDegree * half-size of cone light, centered over direction */ constructor(rayHandler: RayHandler, rays: number, color: RGBA, distance: number, x: number, y: number, directionDegree: number, coneDegree: number); update(): void; /** * Sets light direction *
Actual recalculations will be done only on {@link #update()} call */ setDirection(direction: number): void; /** * @returns This lights cone degree */ getConeDegree(): number; /** * How big is the arc of cone * *
Arc angle = coneDegree * 2, centered over direction angle *
Actual recalculations will be done only on {@link #update()} call * */ setConeDegree(coneDegree: number): void; /** * Sets light distance * *
MIN value capped to 0.1 meter *
Actual recalculations will be done only on {@link #update()} call */ setDistance(dist: number): void; /** Updates lights sector basing on distance, direction and coneDegree */ protected setEndPoints(): void; } //# sourceMappingURL=ConeLight.d.ts.map