tens3

class vec.tens3
assert_close(value: tens3) → None.

Assert that this tensor is close to the given tensor.

diagonal() → vec3.

Returns the diagonal as a new vec3.

fill(value: float) → None.

Set all elements to value.

trace() → float.

Returns the trace.

xx() → float.

Return the xx component of the tensor.

xy() → float.

Return the xy component of the tensor.

xz() → float.

Return the xz component of the tensor.

yx() → float.

Return the yx component of the tensor.

yy() → float.

Return the yy component of the tensor.

yz() → float.

Return the yz component of the tensor.

zx() → float.

Return the zx component of the tensor.

zy() → float.

Return the zy component of the tensor.

zz() → float.

Return the zz component of the tensor.