Skip to content

charton API


charton API / @chart-on/core / index / rayEnd

Function: rayEnd() ​

rayEnd(a, b, width, height): Point

Defined in: packages/core/src/drawing/geometry.ts:35

Point where the ray a→b leaves the rectangle [0,w]×[0,h] (or b if degenerate).

Parameters ​

a ​

Point

b ​

Point

width ​

number

height ​

number

Returns ​

Point