fiftyone.core.threed.transformation¶
Classes:
|
Represents a three-dimensional vector. |
|
Represents intrinsic rotations about the object’s own principal axes. |
|
Represents a quaternion. |
Functions:
-
class
fiftyone.core.threed.transformation.
Vector3
(x: float = 0.0, y: float = 0.0, z: float = 0.0)¶ Bases:
fiftyone.core.threed.validators.BaseValidatedDataClass
Represents a three-dimensional vector.
Attributes:
Methods:
to_arr
()Converts the vector to a numpy array.
-
property
x
¶
-
property
y
¶
-
property
z
¶
-
to_arr
()¶ Converts the vector to a numpy array.
-
property
-
class
fiftyone.core.threed.transformation.
Euler
(x: float = 0.0, y: float = 0.0, z: float = 0.0, degrees: bool = False, sequence: Literal[XYZ, XZY, YXZ, YZX, ZXY, ZYX] = 'XYZ')¶ Bases:
fiftyone.core.threed.transformation.Vector3
Represents intrinsic rotations about the object’s own principal axes.
Attributes:
Methods:
Converts the euler angles to a quaternion.
to_arr
()Converts the vector to a numpy array.
-
property
degrees
¶
-
property
sequence
¶
-
to_quaternion
()¶ Converts the euler angles to a quaternion.
-
to_arr
()¶ Converts the vector to a numpy array.
-
property
x
¶
-
property
y
¶
-
property
z
¶
-
property
-
class
fiftyone.core.threed.transformation.
Quaternion
(x: float = 0.0, y: float = 0.0, z: float = 0.0, w: float = 1.0)¶ Bases:
fiftyone.core.threed.validators.BaseValidatedDataClass
Represents a quaternion.
Attributes:
Methods:
to_euler
([degrees, sequence])Converts the quaternion into euler angles.
to_arr
()Converts the quaternion to a numpy array.
-
property
x
¶
-
property
y
¶
-
property
z
¶
-
property
w
¶
-
to_euler
(degrees=False, sequence='XYZ')¶ Converts the quaternion into euler angles.
-
to_arr
()¶ Converts the quaternion to a numpy array.
-
property
-
fiftyone.core.threed.transformation.
normalize_to_vec3
(v: Optional[Union[fiftyone.core.threed.transformation.Vector3, List[float], Tuple[float], numpy.array]]) → Optional[fiftyone.core.threed.transformation.Vector3]¶
-
fiftyone.core.threed.transformation.
coerce_to_vec3
(v: Optional[Union[fiftyone.core.threed.transformation.Vector3, List[float], Tuple[float], numpy.array]]) → Optional[fiftyone.core.threed.transformation.Vector3]¶