mirror of
https://github.com/pseXperiments/icicle.git
synced 2026-01-08 23:17:54 -05:00
use zero method of projective in fromAffine
Co-authored-by: Jeremy Felder <jeremy.felder1@gmail.com>
This commit is contained in:
@@ -44,9 +44,7 @@ func (p *{{.CurvePrefix}}Projective) FromAffine(a {{.CurvePrefix}}Affine) {{.Cur
|
|||||||
z.One()
|
z.One()
|
||||||
|
|
||||||
if (a.X == z.Zero()) && (a.Y == z.Zero()) {
|
if (a.X == z.Zero()) && (a.Y == z.Zero()) {
|
||||||
p.X = z.Zero()
|
p.Zero()
|
||||||
p.Y = z.One()
|
|
||||||
p.Z = z.Zero()
|
|
||||||
}else{
|
}else{
|
||||||
p.X = a.X
|
p.X = a.X
|
||||||
p.Y = a.Y
|
p.Y = a.Y
|
||||||
|
|||||||
Reference in New Issue
Block a user