Z: FieldElement = fe()
}
+/**
+ * Base class for a point in projective space.
+ */
+class ProjectivePoint extends Point {
+ __brand: 'p' | 'p2' | 'p3' = 'p'
+}
+
/**
* Projective coordinates.
*/
-export class p2 extends Point {
+export class p2 extends ProjectivePoint {
__brand: 'p2' = 'p2'
}
/**
* Extended projective coordinates.
*/
-export class p3 extends Point {
+export class p3 extends ProjectivePoint {
T: FieldElement = fe()
__brand: 'p3' = 'p3'
}