c4dynamics.states.state.state.normalize#
- property state.normalize#
Returns a unit vector representation of the state vector.
- Returns:
out (numpy.array) – A normalized vector of the same direction and shape as self.X, where the norm of the vector is 1.
Examples
>>> s = c4d.state(x = 1, y = 2, z = 3) >>> s.normalize [0.267 0.534 0.801]