Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Polygon

Hierarchy

  • Polygon

Index

Constructors

constructor

Properties

plane

plane: Plane

vertices

vertices: ReadonlyArray<Vertex>

Methods

area

  • area(): number
  • Returns number

centroid

  • Returns Vector

contains

  • Parameters

    • point: VectorOrList
    • Default value epsilon: number = Sylvester.precision

    Returns boolean

containsByWindingNumber

  • containsByWindingNumber(point: VectorOrList, epsilon?: number): boolean
  • Parameters

    • point: VectorOrList
    • Default value epsilon: number = Sylvester.precision

    Returns boolean

eql

  • eql(other: unknown, epsilon?: number): boolean
  • Parameters

    • other: unknown
    • Default value epsilon: number = Sylvester.precision

    Returns boolean

hasEdgeContaining

  • hasEdgeContaining(point: VectorOrList, epsilon?: number): boolean
  • Parameters

    • point: VectorOrList
    • Default value epsilon: number = Sylvester.precision

    Returns boolean

isTriangle

  • isTriangle(): boolean
  • Returns boolean

projectionOn

  • Parameters

    Returns Polygon

removeVertex

  • Parameters

    Returns Polygon

rotate

  • Parameters

    • t: number
    • line: Line

    Returns Polygon

scale

  • Parameters

    • k: number
    • Default value point: VectorOrList = Vector.Zero(3)

    Returns Polygon

toString

  • toString(): string
  • Returns string

toTriangles

  • toTriangles(): ReadonlyArray<Polygon>
  • Returns ReadonlyArray<Polygon>

translate

Private trianglesForSurfaceIntegral

  • trianglesForSurfaceIntegral(): ReadonlyArray<Polygon>
  • Returns ReadonlyArray<Polygon>

triangulateByEarClipping

  • triangulateByEarClipping(): Polygon[]
  • Returns Polygon[]

v

  • Parameters

    • i: number

    Returns Vertex

Generated using TypeDoc