Range

A range of reals, mainly used for 1d intersection testing.

Members

Functions

overlap
real overlap(Range other)

checks if two ranges overlap and return the smallest offset that would make them not overlap.

overlap
real overlap(real offset)

check if offset lies inside this range and returns the smallest offset needed to make it lie outside this range.

Variables

start
real start;

start of range

stop
real stop;

stop of range

Meta