Record Class ProjectivePoint<E>
java.lang.Object
java.lang.Record
dk.jonaslindstrom.ruffini.elliptic.elements.ProjectivePoint<E>
-
Constructor Summary
ConstructorsConstructorDescriptionProjectivePoint(E X, E Y, E Z) Creates an instance of aProjectivePointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisPointAtInfinity(java.util.function.Predicate<E> isZero) static <F> ProjectivePoint<F>pointAtInfinity(Field<F> field) toAffinePoint(Field<E> field) toString()Returns a string representation of this record class.X()Returns the value of theXrecord component.Y()Returns the value of theYrecord component.Z()Returns the value of theZrecord component.
-
Constructor Details
-
ProjectivePoint
Creates an instance of aProjectivePointrecord class.- Parameters:
X- the value for theXrecord componentY- the value for theYrecord componentZ- the value for theZrecord component
-
-
Method Details
-
pointAtInfinity
-
isPointAtInfinity
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
toAffinePoint
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
X
Returns the value of theXrecord component.- Returns:
- the value of the
Xrecord component
-
Y
Returns the value of theYrecord component.- Returns:
- the value of the
Yrecord component
-
Z
Returns the value of theZrecord component.- Returns:
- the value of the
Zrecord component
-