G1NativeProjective.fromAffine constructor
G1NativeProjective.fromAffine(
- G1NativeAffinePoint affine
Implementation
factory G1NativeProjective.fromAffine(G1NativeAffinePoint affine) {
return G1NativeProjective(
x: affine.x,
y: affine.y,
z: Bls12NativeFp.conditionalSelect(
Bls12NativeFp.one(),
Bls12NativeFp.zero(),
affine.infinity,
),
);
}