11.1. 模块 pySudoMath

class pySudoMath.Quaternionr

Quaternion (w, x, y, z).

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pySudoMath.Quaternionr) -> None

  2. __init__(self: pySudoMath.Quaternionr, w: float, x: float, y: float, z: float) -> None

    Create a quaternion with four parameters (w, x, y, z).

  3. __init__(self: pySudoMath.Quaternionr, w: float, v: pySudoMath.Vector3f) -> None

    Create a quaternion with a scalar (w) and a vector (v).

norm(self: pySudoMath.Quaternionr) float

norm of the quaternion.

class pySudoMath.Vector2f
__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pySudoMath.Vector2f, arg0: float) -> None

  2. __init__(self: pySudoMath.Vector2f, arg0: float, arg1: float) -> None

class pySudoMath.Vector2i
__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pySudoMath.Vector2i, arg0: int) -> None

  2. __init__(self: pySudoMath.Vector2i, arg0: int, arg1: int) -> None

class pySudoMath.Vector2r
__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pySudoMath.Vector2r, arg0: float) -> None

  2. __init__(self: pySudoMath.Vector2r, arg0: float, arg1: float) -> None

class pySudoMath.Vector3f
__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pySudoMath.Vector3f, arg0: float) -> None

  2. __init__(self: pySudoMath.Vector3f, arg0: float, arg1: float, arg2: float) -> None

class pySudoMath.Vector3i
__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pySudoMath.Vector3i, arg0: int) -> None

  2. __init__(self: pySudoMath.Vector3i, arg0: int, arg1: int, arg2: int) -> None

class pySudoMath.Vector3r
__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pySudoMath.Vector3r, arg0: float) -> None

  2. __init__(self: pySudoMath.Vector3r, arg0: float, arg1: float, arg2: float) -> None

class pySudoMath.test
__init__(self: pySudoMath.test) None
list_to_vec_quaternion(self: pySudoMath.test, arg0: List[pySudoMath.Quaternionr]) None

test list of Quaternionr to vector<Quaternion<float>>

list_to_vec_vec3(self: pySudoMath.test, arg0: List[pySudoMath.Vector3f]) None

test list of vector3f to vector<vec3<float>>