Segment

data class Segment(val point1: Vec2, val point2: Vec2)

A line segment shape geometry.

Parameters

point1

The first point of the segment

point2

The second point of the segment

Constructors

Link copied to clipboard
constructor(point1: Vec2, point2: Vec2)

Properties

Link copied to clipboard
Link copied to clipboard