Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HalfEdge

A half-edge in a convex hull.

Hierarchy

  • HalfEdge

Index

Constructors

  • Creates a new half-edge.

    Parameters

    • vertex: Vertex

      The vertex at the end of this half-edge.

    • face: Face

      The face this half-edge is part of.

    Returns HalfEdge

Properties

face: null | Face

The face this half-edge is part of.

next: null | HalfEdge

The next half-edge in the face.

opposite: null | HalfEdge

The half-edge opposite to this half-edge.

prev: null | HalfEdge

The previous half-edge in the face.

vertex: Vertex

The vertex at the end of this half-edge.

Methods

  • Returns the vertex at the end of this half-edge.

    Returns Vertex

    The vertex at the end of this half-edge.

  • length(): number
  • Gets the length between the head and the tail of this half-edge.

    Returns number

    The length between the head and tail of this half-edge.

  • lengthSquared(): number
  • Gets the length of this half-edge.

    Returns number

    The length of this half-edge.

  • Sets the opposite half-edge.

    Parameters

    • edge: HalfEdge

      The new opposite half-edge.

    Returns void

  • Returns the vertex at the end of the previous half-edge in the face.

    Returns null | Vertex

    The vertex at the end of the previous half-edge in the face.