Function graphics::math::line_side

source ·
pub fn line_side<T>(line: Line<T>, v: Vec2d<T>) -> Twhere
    T: Float,
Expand description

Returns a number that tells which side it is relative to a line.

Computes the cross product of the vector that gives the line with the vector between point and starting point of line. One side of the line has opposite sign of the other.