Struct test_dalek_docs::backend::serial::curve_models::CompletedPoint
source · pub struct CompletedPoint {
pub X: FieldElement51,
pub Y: FieldElement51,
pub Z: FieldElement51,
pub T: FieldElement51,
}
Expand description
A CompletedPoint
is a point \(((X:Z), (Y:T))\) on the \(\mathbb
P^1 \times \mathbb P^1 \) model of the curve.
A point (x,y) in the affine model corresponds to \( ((x:1),(y:1))
\).
More details on the relationships between the different curve models can be found in the module-level documentation.
Fields
X: FieldElement51
Y: FieldElement51
Z: FieldElement51
T: FieldElement51
Implementations
sourceimpl CompletedPoint
impl CompletedPoint
sourcepub fn to_projective(&self) -> ProjectivePoint
pub fn to_projective(&self) -> ProjectivePoint
Convert this point from the \( \mathbb P^1 \times \mathbb P^1 \) model to the \( \mathbb P^2 \) model.
This costs \(3 \mathrm M \).
sourcepub fn to_extended(&self) -> EdwardsPoint
pub fn to_extended(&self) -> EdwardsPoint
Convert this point from the \( \mathbb P^1 \times \mathbb P^1 \) model to the \( \mathbb P^3 \) model.
This costs \(4 \mathrm M \).
Trait Implementations
sourceimpl Clone for CompletedPoint
impl Clone for CompletedPoint
sourcefn clone(&self) -> CompletedPoint
fn clone(&self) -> CompletedPoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CompletedPoint
impl Debug for CompletedPoint
impl Copy for CompletedPoint
Auto Trait Implementations
impl RefUnwindSafe for CompletedPoint
impl Send for CompletedPoint
impl Sync for CompletedPoint
impl Unpin for CompletedPoint
impl UnwindSafe for CompletedPoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more