- java.lang.Object
-
- swim.math.Z2
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Z2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Z2Vector
add(Z2Vector u, Z2Vector v)
Z2Vector
combine(Long a, Z2Vector u, Long b, Z2Vector v)
<T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.Long
getX(Z2Vector v)
Long
getY(Z2Vector v)
static Z2
module()
Z2Vector
multiply(Z2Vector u, Long a)
Z2Vector
of(Long x, Long y)
Z2Vector
opposite(Z2Vector v)
Z
scalar()
Z2Vector
subtract(Z2Vector u, Z2Vector v)
String
toString()
Z2Vector
zero()
-
-
-
Method Detail
-
scalar
public final Z scalar()
- Specified by:
scalar
in interfaceVectorModule<Z2Vector,Long>
-
zero
public final Z2Vector zero()
- Specified by:
zero
in interfaceVectorModule<Z2Vector,Long>
-
add
public final Z2Vector add(Z2Vector u, Z2Vector v)
- Specified by:
add
in interfaceVectorModule<Z2Vector,Long>
-
opposite
public final Z2Vector opposite(Z2Vector v)
- Specified by:
opposite
in interfaceVectorModule<Z2Vector,Long>
-
subtract
public final Z2Vector subtract(Z2Vector u, Z2Vector v)
- Specified by:
subtract
in interfaceVectorModule<Z2Vector,Long>
-
multiply
public final Z2Vector multiply(Z2Vector u, Long a)
- Specified by:
multiply
in interfaceVectorModule<Z2Vector,Long>
-
combine
public final Z2Vector combine(Long a, Z2Vector u, Long b, Z2Vector v)
- Specified by:
combine
in interfaceVectorModule<Z2Vector,Long>
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
module
public static Z2 module()
-
-