@equinor/videx-3d
    Preparing search index...

    Function edgeOfRectangle

    • Given a 2D rectangle and an angle off the center, find the point of the closest corner. Used for anchoring connector lines to annotation labels.

      Pass an optional target array to write the result into, avoiding an allocation in hot paths.

      Parameters

      • rect: Vec2
      • theta: number
      • Optionaltarget: Vec2

      Returns Vec2