ixfx
    Preparing search index...

    Type Alias PolarRay

    PolarRay: Readonly<
        { angleRadian: number; length: number; offset?: number; origin?: Point },
    >

    A polar ray allows you to express a line in polar coordinates rather than two x,y points.

    It consists of an angle (in radians) with a given offset and length. This way of defining a line makes some manipulations really easy, for example, to make a set of lines that radiate out from a point in a circular direction, and then animate them inwards and outwards.

    An alternative is PolarLine which defines a line as two Coords with a common origin.

    Properties

    • angleRadian: Angle of line
    • offset: distance from the polar origin (default: 0)
    • length: length of ray
    • origin: Start Cartesian coordinate of line