Function equivalent [src]

Return true if both coordinate sets represent the same point.

Prototype

pub fn equivalent(a: P384, b: P384) bool

Parameters

a: P384b: P384

Source

pub fn equivalent(a: P384, b: P384) bool { if (a.sub(b).rejectIdentity()) { return false; } else |_| { return true; } }