math docs
    Preparing search index...

    Type Alias Bone2

    A single bone: two points, the fixed distance between them, and how it may rotate.

    type Bone2 = {
        end: vec2.Vec2;
        joint: Joint2;
        length: number;
        start: vec2.Vec2;
    }
    Index
    end: vec2.Vec2

    The joint shared with the next bone; on the last bone, the end effector.

    joint: Joint2

    How far this bone may rotate away from the bone before it.

    length: number

    The rest distance between start and end, preserved by every solve.

    start: vec2.Vec2

    The joint shared with the previous bone; on the first bone, the base.