openrndr / org.openrndr.shape / Triangle

Triangle

data class Triangle (source)

Constructors

<init>

Triangle(x1: Vector2, x2: Vector2, x3: Vector2)

Properties

area

val area: Double

contour

val contour: ShapeContour

x1

val x1: Vector2

x2

val x2: Vector2

x3

val x3: Vector2

Functions

contains

operator fun contains(v: Vector2): Boolean

div

operator fun div(scale: Double): Triangle

minus

operator fun minus(right: Triangle): Triangle

plus

operator fun plus(right: Triangle): Triangle

randomPoint

fun randomPoint(random: Random = Random.Default): Vector2

times

operator fun times(scale: Double): Triangle