Vector4¶
In [1]:
import py3d
py3d.Vector4()
Out[1]:
Vector4([0., 0., 0., 1.])
In [2]:
import py3d
p = py3d.Vector4([0, 0, 0, 1]).tile(2)
p
Out[2]:
Vector4([[0., 0., 0., 1.], [0., 0., 0., 1.]])
In [3]:
p.w
Out[3]:
Vector([1., 1.])
In [4]:
p.xyz
Out[4]:
Vector3([[0., 0., 0.], [0., 0., 0.]])
In [ ]: