Module nannou::geom::line [] [src]

Structs

Line

A line represented by two points.

Functions

contains

Describes whether or not the given point touches the line described by a -> b with the given thickness.

quad_corners

Given two points and half the line thickness, return the four corners of the rectangle describing the line.

triangles

Given two points and half the line thickness, return the two triangles that describe the line.

triangles_iter

Given two points and half the line thickness, return the two triangles that describe the line.

Type Definitions

Quad

The quad used to describe a line.

Tri

The triangle types used to describe a line quad.

Triangles

The triangles used to describe the quad of a line.

Vertices

The vertices used to describe the quad of a line.