Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Triangle

Index

Constructors

constructor

Properties

p1

p1: Point

p2

p2: Point

p3

p3: Point

Methods

area

  • area(): number
  • Returns number

bounds

centroid

circumcircle

circumference

  • circumference(): number
  • Returns number

clockwise

  • clockwise(): boolean
  • Returns boolean

closest

contains

copy

distance

  • distance(p: Point): number
  • Parameters

    Returns number

edges

polygon

reverse

rotate

scale

translate

  • translate(x: number, y: number): Triangle
  • Parameters

    • x: number
    • y: number

    Returns Triangle