fixed to_projective in rust

This commit is contained in:
Vlad
2024-07-03 09:18:41 +02:00
parent f08b5bb49d
commit 9e057c835d

View File

@@ -79,6 +79,9 @@ impl<C: Curve> Affine<C> {
}
pub fn to_projective(&self) -> Projective<C> {
if *self == Self::zero() {
return Projective::<C>::zero();
}
Projective {
x: self.x,
y: self.y,