ProtoTwin API
    Preparing search index...

    Class Circle

    Immutable circle.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    • Constructor.

      Parameters

      • plane: Plane

        The plane in which the circle lies.

      • radius: number

        The uniform radius for the circle.

      • initialSurfaceNormal: Vec3 = Vec3.zero

        The (optional) initial surface normal for the circle.

      Returns Circle

    Properties

    initialSurfaceNormal: Vec3

    The initial surface normal for the circle.

    plane: Plane

    The plane in which the circle lies.

    radius: number

    The uniform radius for the circle.

    Accessors

    • get closed(): boolean

      Whether the curve is closed.

      Returns boolean

    • get length(): number

      The circumference.

      Returns number

    Methods

    • Evaluates the frame at the specified distance.

      Parameters

      • s: number

        The distance.

      Returns Frame

      The frame.

    • Evaluates the normal to the circle at the specified arc-length.

      Parameters

      • s: number

        The arc-length.

      Returns Vec3

      The normal to the circle.

    • Parameters

      • s: number

      Returns number

    • Evaluates the point on the circle at the specified arc-length.

      Parameters

      • s: number

        The arc-length.

      Returns Vec3

      The point on the circle.

    • Calculates the angle for the specified point when projected onto the circle.

      Parameters

      Returns number

      The angle for the projected point.

    • Calculates the arc-length for the specified point when projected onto the circle.

      Parameters

      Returns number

      The arc-length for the projected point.

    • Parameters

      • s: number
      • distances: number[]

      Returns number

    • Evaluates the tangent to the circle at the specified arc-length.

      Parameters

      • s: number

        The arc-length.

      Returns Vec3

      The tangent to the circle.