pub struct JacobianPoint<E: IsEllipticCurve> {
pub value: [FieldElement<E::BaseField>; 3],
}Fields§
§value: [FieldElement<E::BaseField>; 3]Implementations§
Source§impl<E: IsEllipticCurve> JacobianPoint<E>
impl<E: IsEllipticCurve> JacobianPoint<E>
Sourcepub const fn new(value: [FieldElement<E::BaseField>; 3]) -> Self
pub const fn new(value: [FieldElement<E::BaseField>; 3]) -> Self
Creates an elliptic curve point giving the Jacobian [x: y: z] coordinates.
Sourcepub fn x(&self) -> &FieldElement<E::BaseField>
pub fn x(&self) -> &FieldElement<E::BaseField>
Returns the x coordinate of the point.
Sourcepub fn y(&self) -> &FieldElement<E::BaseField>
pub fn y(&self) -> &FieldElement<E::BaseField>
Returns the y coordinate of the point.
Sourcepub fn z(&self) -> &FieldElement<E::BaseField>
pub fn z(&self) -> &FieldElement<E::BaseField>
Returns the z coordinate of the point.
Sourcepub fn coordinates(&self) -> &[FieldElement<E::BaseField>; 3]
pub fn coordinates(&self) -> &[FieldElement<E::BaseField>; 3]
Returns a tuple [x, y, z] with the coordinates of the point.
pub fn to_affine(&self) -> Self
Trait Implementations§
Source§impl<E: Clone + IsEllipticCurve> Clone for JacobianPoint<E>
impl<E: Clone + IsEllipticCurve> Clone for JacobianPoint<E>
Source§fn clone(&self) -> JacobianPoint<E>
fn clone(&self) -> JacobianPoint<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug + IsEllipticCurve> Debug for JacobianPoint<E>
impl<E: Debug + IsEllipticCurve> Debug for JacobianPoint<E>
Source§impl<E: IsEllipticCurve> PartialEq for JacobianPoint<E>
impl<E: IsEllipticCurve> PartialEq for JacobianPoint<E>
impl<E: IsEllipticCurve> Eq for JacobianPoint<E>
Auto Trait Implementations§
impl<E> Freeze for JacobianPoint<E>
impl<E> RefUnwindSafe for JacobianPoint<E>
impl<E> Send for JacobianPoint<E>
impl<E> Sync for JacobianPoint<E>
impl<E> Unpin for JacobianPoint<E>
impl<E> UnwindSafe for JacobianPoint<E>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more