java.lang.Object
swim.math.R2Vector
- All Implemented Interfaces:
Debug
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
<T> Output<T>
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
static TensorForm<R2Vector>
form()
int
hashCode()
final R2Vector
static R2Vector
of
(double x, double y) final R2Vector
opposite()
final R2Vector
final R2Vector
times
(double scalar) toString()
toValue()
static R2Vector
zero()
-
Field Details
-
x
public final double x -
y
public final double y
-
-
Constructor Details
-
R2Vector
public R2Vector(double x, double y)
-
-
Method Details
-
plus
-
opposite
-
minus
-
times
-
transform
-
toValue
-
canEqual
-
equals
-
hashCode
public int hashCode() -
debug
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
. -
toString
-
zero
-
of
-
form
-