Home Examples Installation Documentation Contact Help

from_string

Specification

Location Author Maintained by
isl/math/quaternion.py Kenny Erleben DIKU

Purpose & Params

The purpose of this module is to convert string to operations. The convertible operations is:

Example

    import numpy as np
    degree  = "90"
    axis    = "[1,0,0]"
    quaternion = from_string(f"ru: {degree}:{axis}")
    print(quaternion)

output:

   array([0.70710678, 0.70710678, 0.        , 0.        ])