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