Function graphics::math::line_side
[−]
[src]
pub fn line_side(line: Line, v: Vec2d) -> Scalar
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.