Skip to main content

Segment

Type Alias Segment 

Source
pub type Segment = Segment;
Expand description

A segment shape.

Aliased Type§

#[repr(C)]
pub struct Segment { pub a: Vec2, pub b: Vec2, }

Fields§

§a: Vec2

The first endpoint of the segment.

§b: Vec2

The second endpoint of the segment.