mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
more generic point in result_point_util
This commit is contained in:
@@ -365,6 +365,13 @@ where
|
||||
y: self.y.floor(),
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the z component of the cross product between vectors BC and BA.
|
||||
*/
|
||||
pub fn crossProductZ(a: PointT<T>, b: PointT<T>, c: PointT<T>) -> T {
|
||||
((c.x - b.x) * (a.y - b.y)) - ((c.y - b.y) * (a.x - b.x))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<(i32, i32)> for Point {
|
||||
|
||||
Reference in New Issue
Block a user