FullControl JS
    Preparing search index...

    Function rectangleXY

    • Generates an array of Points forming a 2D rectangle in the XY plane.

      Parameters

      • start: Point

        The starting corner point.

      • x_size: number

        Length along the X axis.

      • y_size: number

        Length along the Y axis.

      • cw: boolean = false

        Set to true to draw clockwise, default is false.

      Returns Point[]

      An array of 5 Points closing the rectangle.