Specifies a set of Edges in a RigidBody. The Edges must be contiguous in the list of Edges in the RigidBody. Edges are specified by their index in the list of Edges of the RigidBody.

Implements

Constructors

  • Parameters

    • body: RigidBody

      the RigidBody the Edges belong to

    • beginIdx: number

      the index of the first Edge within the list of Edges in the RigidBody

    • endIdx: number

      the index of the last Edge within the list of Edges in the RigidBody

    Returns EdgeRange

Properties

beginIdx_: number

beginning index of Edge of the set, inclusive

body_: RigidBody

the RigidBody the Edges belong to

endIdx_: number

ending index of Edge of the set, inclusive

Methods

  • Whether this EdgeSet contains the specified Edge.

    Parameters

    • edge: Edge

      the Edge to look for

    Returns boolean

    true if this EdgeSet contains the specified Edge

  • Creates an EdgeRange by finding all the set of all Edges connected to a given Edge. Any Edge in the set can be specified to the constructor: the first, the last, or any Edge in the middle of the set.

    This set of Edges corresponds to the concept of a "path of edges" discussed in Structure of a Polygon.

    Assumption: Edges in set are contiguous in the RigidBody's list of Edges.

    TO DO check that Edges in set are contiguous in the RigidBody's list of Edges

    Parameters

    • edge: Edge

      the Edge to start with

    Returns EdgeRange

    an EdgeRange representing all Edges connected to the starting Edge

Generated using TypeDoc