Function cairo_vm::math_utils::line_slope
source ยท pub fn line_slope(
point_a: &(BigInt, BigInt),
point_b: &(BigInt, BigInt),
prime: &BigInt,
) -> Result<BigInt, MathError>
Expand description
Computes the slope of the line connecting the two given EC points over the field GF(p). Assumes the points are given in affine form (x, y) and have different x coordinates.