Vec3#
- class gm3dh5.geometry.Vec3(x: Vec3 | ndarray[Any, dtype[_ScalarType_co]] | float | None = None, y: ndarray[Any, dtype[_ScalarType_co]] | float | None = None, z: ndarray[Any, dtype[_ScalarType_co]] | float | None = None)#
Bases:
object
Attributes
Methods
Vec3.angle
(other)Vec3.concatenate
(tup, **kwargs)Vec3.cross
(other)Vec3.dot
(other)Vec3.flatten
(**kwargs)Vec3.from_polar_coordinates
(polar, azimuth)Vec3.hstack
(tup, **kwargs)Vec3.isnull
([eps])Vec3.like
(other)Vec3.rand
(d0, d1, ..., dn)Return a sample (or samples) from the uniform spherical distribution.
Vec3.ravel
(**kwargs)Vec3.reflect
(normal)Vec3.reshape
(*shape, **kwargs)Vec3.round
([decimals])Vec3.stack
(tup, **kwargs)Return transposed shape of array, note only works for 2-D arrays, e.g. used v[np.newaxis].
Vec3.vstack
(tup, **kwargs)Vec3.zeros
(*args)