Class Orthonormalized4D
java.lang.Object
com.io7m.jtensors.orthonormalization.Orthonormalized4D
- All Implemented Interfaces:
Orthonormalized4DType
A set of vectors that are orthogonal to each other and are normalized.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Orthonormalized4D.Builderbuilder()Creates a builder forOrthonormalized4D.static Orthonormalized4DcopyOf(Orthonormalized4DType instance) Creates an immutable copy of aOrthonormalized4DTypevalue.booleanThis instance is equal to all instances ofOrthonormalized4Dthat have equal attribute values.inthashCode()Computes a hash code from attributes:v0,v1,v2.static Orthonormalized4DConstruct a new immutableOrthonormalized4Dinstance.toString()Prints the immutable valueOrthonormalized4Dwith attribute values.v0()v1()v2()final Orthonormalized4DCopy the current immutable object by setting a value for thev0attribute.final Orthonormalized4DCopy the current immutable object by setting a value for thev1attribute.final Orthonormalized4DCopy the current immutable object by setting a value for thev2attribute.
-
Method Details
-
v0
- Specified by:
v0in interfaceOrthonormalized4DType- Returns:
- Vector 0
-
v1
- Specified by:
v1in interfaceOrthonormalized4DType- Returns:
- Vector 1
-
v2
- Specified by:
v2in interfaceOrthonormalized4DType- Returns:
- Vector 2
-
withV0
Copy the current immutable object by setting a value for thev0attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v0- Returns:
- A modified copy of the
thisobject
-
withV1
Copy the current immutable object by setting a value for thev1attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v1- Returns:
- A modified copy of the
thisobject
-
withV2
Copy the current immutable object by setting a value for thev2attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v2- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofOrthonormalized4Dthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:v0,v1,v2. -
toString
Prints the immutable valueOrthonormalized4Dwith attribute values. -
of
Construct a new immutableOrthonormalized4Dinstance.- Parameters:
v0- The value for thev0attributev1- The value for thev1attributev2- The value for thev2attribute- Returns:
- An immutable Orthonormalized4D instance
-
copyOf
Creates an immutable copy of aOrthonormalized4DTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Orthonormalized4D instance
-
builder
Creates a builder forOrthonormalized4D.Orthonormalized4D.builder() .setV0(com.io7m.jtensors.core.unparameterized.vectors.Vector4D) // requiredv0.setV1(com.io7m.jtensors.core.unparameterized.vectors.Vector4D) // requiredv1.setV2(com.io7m.jtensors.core.unparameterized.vectors.Vector4D) // requiredv2.build();- Returns:
- A new Orthonormalized4D builder
-