Basic Tissue Forge Types
Tissue Forge uses some basic types that provide support and convenience
methods for particular operations, especially concerning vector and
tensor operations. Some of these types are completely native to
Tissue Forge, and others constructed partially or completely from
types distributed in various Tissue Forge dependencies (e.g.,
FVector3 from Vector3, from
Magnum.
- class tissue_forge.dVector2(*args)
A 2D vector with
doubleelements- static xAxis(*args, **kwargs)
Get a vector in the X- (first-) direction of specified length
- static yAxis(*args, **kwargs)
Get a vector in the Y- (second-) direction of specified length
- static xScale(scale)
Get a scaling vector in the X- (first-) direction
- static yScale(scale)
Get a scaling vector in the Y- (second-) direction
- x(*args)
Overload 1: Get the X (first) component
Overload 2: Get the X (first) component
- y(*args)
Overload 1: Get the Y (second) component
Overload 2: Get the Y (second) component
- flipped()
- dot(*args)
- cross(other)
Get the cross product with another vector
- angle(other)
angle made with another vector
- __len__()
- __iadd__(*args)
- __add__(*args)
- __isub__(*args)
- __sub__(*args)
- __imul__(*args)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- length()
length of vector
- normalized()
vector normalized
- resized(length)
resize be a length
- projected(other)
project onto another vector
- projectedOntoNormalized(other)
project onto a normalized vector
- distance(line_start_pt, line_end_pt)
distance from a line defined by two points
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.fVector2(*args)
A 2D vector with
floatelements- static xAxis(*args, **kwargs)
Get a vector in the X- (first-) direction of specified length
- static yAxis(*args, **kwargs)
Get a vector in the Y- (second-) direction of specified length
- static xScale(scale)
Get a scaling vector in the X- (first-) direction
- static yScale(scale)
Get a scaling vector in the Y- (second-) direction
- x(*args)
Overload 1: Get the X (first) component
Overload 2: Get the X (first) component
- y(*args)
Overload 1: Get the Y (second) component
Overload 2: Get the Y (second) component
- flipped()
- dot(*args)
- cross(other)
Get the cross product with another vector
- angle(other)
angle made with another vector
- __len__()
- __iadd__(*args)
- __add__(*args)
- __isub__(*args)
- __sub__(*args)
- __imul__(*args)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- length()
length of vector
- normalized()
vector normalized
- resized(length)
resize be a length
- projected(other)
project onto another vector
- projectedOntoNormalized(other)
project onto a normalized vector
- distance(line_start_pt, line_end_pt)
distance from a line defined by two points
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.iVector2(*args)
A 2D vector with
intelements- static xAxis(*args, **kwargs)
Get a vector in the X- (first-) direction of specified length
- static yAxis(*args, **kwargs)
Get a vector in the Y- (second-) direction of specified length
- static xScale(scale)
Get a scaling vector in the X- (first-) direction
- static yScale(scale)
Get a scaling vector in the Y- (second-) direction
- x(*args)
Overload 1: Get the X (first) component
Overload 2: Get the X (first) component
- y(*args)
Overload 1: Get the Y (second) component
Overload 2: Get the Y (second) component
- flipped()
- dot(*args)
- cross(other)
Get the cross product with another vector
- __len__()
- __iadd__(*args)
- __add__(*args)
- __isub__(*args)
- __sub__(*args)
- __imul__(*args)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.dVector3(*args)
A 3D vector with
doubleelements- static xAxis(*args, **kwargs)
- static yAxis(*args, **kwargs)
- static zAxis(*args, **kwargs)
- static xScale(scale)
- static yScale(scale)
- static zScale(scale)
- x(*args)
Overload 1: Get the X (first) component
Overload 2: Get the X (first) component
- y(*args)
Overload 1: Get the Y (second) component
Overload 2: Get the Y (second) component
- z(*args)
Overload 1: Get the Z (third) component
Overload 2: Get the Z (third) component
- r(*args)
Overload 1: Get the red (first) component
Overload 2: Get the red (first) component
- g(*args)
Overload 1: Get the green (second) component
Overload 2: Get the green (second) component
- b(*args)
Overload 1: Get the blue (third) component
Overload 2: Get the blue (third) component
- xy()
- flipped()
- dot(*args)
- cross(other)
Get the cross product with another vector
- angle(other)
angle made with another vector
- __len__()
- __iadd__(*args)
- __add__(*args)
- __isub__(*args)
- __sub__(*args)
- __imul__(*args)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- length()
length of vector
- normalized()
vector normalized
- resized(length)
resize be a length
- projected(other)
project onto another vector
- projectedOntoNormalized(other)
project onto a normalized vector
- distance(line_start_pt, line_end_pt)
distance from a line defined by two points
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.fVector3(*args)
A 3D vector with
floatelements- static xAxis(*args, **kwargs)
- static yAxis(*args, **kwargs)
- static zAxis(*args, **kwargs)
- static xScale(scale)
- static yScale(scale)
- static zScale(scale)
- x(*args)
Overload 1: Get the X (first) component
Overload 2: Get the X (first) component
- y(*args)
Overload 1: Get the Y (second) component
Overload 2: Get the Y (second) component
- z(*args)
Overload 1: Get the Z (third) component
Overload 2: Get the Z (third) component
- r(*args)
Overload 1: Get the red (first) component
Overload 2: Get the red (first) component
- g(*args)
Overload 1: Get the green (second) component
Overload 2: Get the green (second) component
- b(*args)
Overload 1: Get the blue (third) component
Overload 2: Get the blue (third) component
- xy()
- flipped()
- dot(*args)
- cross(other)
Get the cross product with another vector
- angle(other)
angle made with another vector
- __len__()
- __iadd__(*args)
- __add__(*args)
- __isub__(*args)
- __sub__(*args)
- __imul__(*args)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- length()
length of vector
- normalized()
vector normalized
- resized(length)
resize be a length
- projected(other)
project onto another vector
- projectedOntoNormalized(other)
project onto a normalized vector
- distance(line_start_pt, line_end_pt)
distance from a line defined by two points
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.iVector3(*args)
A 3D vector with
intelements- static xAxis(*args, **kwargs)
- static yAxis(*args, **kwargs)
- static zAxis(*args, **kwargs)
- static xScale(scale)
- static yScale(scale)
- static zScale(scale)
- x(*args)
Overload 1: Get the X (first) component
Overload 2: Get the X (first) component
- y(*args)
Overload 1: Get the Y (second) component
Overload 2: Get the Y (second) component
- z(*args)
Overload 1: Get the Z (third) component
Overload 2: Get the Z (third) component
- r(*args)
Overload 1: Get the red (first) component
Overload 2: Get the red (first) component
- g(*args)
Overload 1: Get the green (second) component
Overload 2: Get the green (second) component
- b(*args)
Overload 1: Get the blue (third) component
Overload 2: Get the blue (third) component
- xy(*args)
Overload 1: Get the x-y (first-second) components
Overload 2: Get the x-y (first-second) components
- flipped()
- dot(*args)
- cross(other)
Get the cross product with another vector
- __len__()
- __iadd__(*args)
- __add__(*args)
- __isub__(*args)
- __sub__(*args)
- __imul__(*args)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.dVector4(*args)
A 4D vector with
doubleelements- x(*args)
Overload 1: Get the X (first) component
Overload 2: Get the X (first) component
- y(*args)
Overload 1: Get the Y (second) component
Overload 2: Get the Y (second) component
- z(*args)
Overload 1: Get the Z (third) component
Overload 2: Get the Z (third) component
- w(*args)
Overload 1: Get the W (fourth) component
Overload 2: Get the W (fourth) component
- r(*args)
Overload 1: Get the red (first) component
Overload 2: Get the red (first) component
- g(*args)
Overload 1: Get the green (second) component
Overload 2: Get the green (second) component
- b(*args)
Overload 1: Get the blue (third) component
Overload 2: Get the blue (third) component
- a(*args)
Overload 1: Get the alpha (fourth) component
Overload 2: Get the alpha (fourth) component
- xyz()
- rgb(*args)
Overload 1: Get the red-green-blue (first-second-third) components
Overload 2: Get the red-green-blue (first-second-third) components
- xy(*args)
Overload 1: Get the x-y (first-second) components
Overload 2: Get the x-y (first-second) components
- flipped()
- dot(*args)
- angle(other)
angle made with another vector
- __len__()
- __iadd__(*args)
- __add__(*args)
- __isub__(*args)
- __sub__(*args)
- __imul__(*args)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- length()
length of vector
- normalized()
vector normalized
- resized(length)
resize be a length
- projected(other)
project onto another vector
- projectedOntoNormalized(other)
project onto a normalized vector
- distance(point)
distance from a point
- distanceScaled(point)
scaled distance from a point
- classmethod planeEquation(*args)
get a plane equation
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.fVector4(*args)
A 4D vector with
floatelements- x(*args)
Overload 1: Get the X (first) component
Overload 2: Get the X (first) component
- y(*args)
Overload 1: Get the Y (second) component
Overload 2: Get the Y (second) component
- z(*args)
Overload 1: Get the Z (third) component
Overload 2: Get the Z (third) component
- w(*args)
Overload 1: Get the W (fourth) component
Overload 2: Get the W (fourth) component
- r(*args)
Overload 1: Get the red (first) component
Overload 2: Get the red (first) component
- g(*args)
Overload 1: Get the green (second) component
Overload 2: Get the green (second) component
- b(*args)
Overload 1: Get the blue (third) component
Overload 2: Get the blue (third) component
- a(*args)
Overload 1: Get the alpha (fourth) component
Overload 2: Get the alpha (fourth) component
- xyz()
- rgb(*args)
Overload 1: Get the red-green-blue (first-second-third) components
Overload 2: Get the red-green-blue (first-second-third) components
- xy(*args)
Overload 1: Get the x-y (first-second) components
Overload 2: Get the x-y (first-second) components
- flipped()
- dot(*args)
- angle(other)
angle made with another vector
- __len__()
- __iadd__(*args)
- __add__(*args)
- __isub__(*args)
- __sub__(*args)
- __imul__(*args)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- length()
length of vector
- normalized()
vector normalized
- resized(length)
resize be a length
- projected(other)
project onto another vector
- projectedOntoNormalized(other)
project onto a normalized vector
- distance(point)
distance from a point
- distanceScaled(point)
scaled distance from a point
- classmethod planeEquation(*args)
get a plane equation
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.iVector4(*args)
A 4D vector with
intelements- x(*args)
Overload 1: Get the X (first) component
Overload 2: Get the X (first) component
- y(*args)
Overload 1: Get the Y (second) component
Overload 2: Get the Y (second) component
- z(*args)
Overload 1: Get the Z (third) component
Overload 2: Get the Z (third) component
- w(*args)
Overload 1: Get the W (fourth) component
Overload 2: Get the W (fourth) component
- r(*args)
Overload 1: Get the red (first) component
Overload 2: Get the red (first) component
- g(*args)
Overload 1: Get the green (second) component
Overload 2: Get the green (second) component
- b(*args)
Overload 1: Get the blue (third) component
Overload 2: Get the blue (third) component
- a(*args)
Overload 1: Get the alpha (fourth) component
Overload 2: Get the alpha (fourth) component
- xyz(*args)
Overload 1: Get the x-y-z (first-second-third) components
Overload 2: Get the x-y-z (first-second-third) components
- rgb(*args)
Overload 1: Get the red-green-blue (first-second-third) components
Overload 2: Get the red-green-blue (first-second-third) components
- xy(*args)
Overload 1: Get the x-y (first-second) components
Overload 2: Get the x-y (first-second) components
- flipped()
- dot(*args)
- __len__()
- __iadd__(*args)
- __add__(*args)
- __isub__(*args)
- __sub__(*args)
- __imul__(*args)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.dMatrix3(*args)
A 3x3 square matrix with
doubleelements- static rotation(angle)
Initialize a rotation matrix
- static shearingX(amount)
Initialize a shearing matrix along the X (first) direction
- static shearingY(amount)
Initialize a shearing matrix along the Y (second) direction
- isRigidTransformation()
Test whether the matrix is a rigid transformation
- invertedRigid()
Get the inverted rigid transformation. Must be a rigid transformation.
- __neg__()
- __iadd__(other)
- __add__(other)
- __isub__(other)
- __sub__(other)
- __imul__(number)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- flippedCols()
- flippedRows()
- row(row)
- __mul__(*args)
- transposed()
- diagonal()
- inverted()
- invertedOrthogonal()
- __len__()
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_lists() list
convert to a list of python lists
- __str__() str
Return str(self).
- class tissue_forge.fMatrix3(*args)
A 3x3 square matrix with
floatelements- static rotation(angle)
Initialize a rotation matrix
- static shearingX(amount)
Initialize a shearing matrix along the X (first) direction
- static shearingY(amount)
Initialize a shearing matrix along the Y (second) direction
- isRigidTransformation()
Test whether the matrix is a rigid transformation
- invertedRigid()
Get the inverted rigid transformation. Must be a rigid transformation.
- __neg__()
- __iadd__(other)
- __add__(other)
- __isub__(other)
- __sub__(other)
- __imul__(number)
- __mul__(*args)
- __itruediv__(*args)
- __truediv__(*args)
- flippedCols()
- flippedRows()
- row(row)
- __mul__(*args)
- transposed()
- diagonal()
- inverted()
- invertedOrthogonal()
- __len__()
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_lists() list
convert to a list of python lists
- __str__() str
Return str(self).
- class tissue_forge.dMatrix4(*args)
A 4x4 square matrix with
doubleelements- static rotationX(angle)
Initialize a rotation matrix about the X (first) axis
- static rotationY(angle)
Initialize a rotation matrix about the Y (second) axis
- static rotationZ(angle)
Initialize a rotation matrix about the Z (third) axis
- static reflection(normal)
Initialize a reflection matrix about a plane using the normalized plane normal
- static shearingXY(amountX, amountY)
Initialize a shearing matrix about the X (first) and Y (second) axes
- static shearingXZ(amountX, amountZ)
Initialize a shearing matrix about the X (first) and Z (third) axes
- static shearingYZ(amountY, amountZ)
Initialize a shearing matrix about the Y (second) and Z (third) axes
- static orthographicProjection(size, near, far)
Initialize an orthographic projection matrix
- Parameters:
size (TissueForge::types::TVector2< double >) – size of the view
near (float) – distance to near clipping plane
far (float) – distance for far clipping plane
- static perspectiveProjection(*args)
Overload 1:
Initialize an perspective projection matrix
- Parameters:
size (TissueForge::types::TVector2< double >) – size of the near clipping plane
near (float) – distance to near clipping plane
far (float) – distance for far clipping plane
Overload 2:
Initialize a perspective projection matrix
- Parameters:
fov (float) – horizontal angle of the field of view
aspectRatio (float) – horizontal:vertical field of view aspect ratio
near (float) – distance to near clipping plane
far (float) – distance for far clipping plane
Overload 3:
Initialize a perspective projection matrix
- Parameters:
bottomLeft (TissueForge::types::TVector2< double >) – bottom-left point of field of view
topRight (TissueForge::types::TVector2< double >) – top-right point of field of view
near (float) – distance to near clipping plane
far (float) – distance for far clipping plane
- static lookAt(eye, target, up)
Initialize a matrix oriented towards a point
- Parameters:
eye (TissueForge::types::TVector3< double >) – location of view
target (TissueForge::types::TVector3< double >) – location of target point
up (TissueForge::types::TVector3< double >) – upward-normal of view
- isRigidTransformation()
Test whether the matrix is a rigid transformation
- rotationScaling()
Get the rotation and scaling matrix
- rotationShear()
Get the rotation and shear matrix
- rotation(*args)
Overload 1: Initialize a rotation matrix from a rotation angle and normalized axis of rotation
Overload 2: Get the rotation matrix
- rotationNormalized()
Get the normalized rotation matrix
- scalingSquared()
Get the squared scaling vector
- scaling(*args)
Overload 1: Initialize a scaling matrix from a scaling vector
Overload 2: Get the scaling vector
- uniformScalingSquared()
Get the uniform squared scaling vector
- uniformScaling()
Get the uniform scaling vector
- normalMatrix()
Get the normal matrix
- right(*args)
Overload 1: Get the rightward-pointing vector
Overload 2: Get the rightward-pointing vector
- up(*args)
Overload 1: Get the upward-pointing vector
Overload 2: Get the upward-pointing vector
- backward(*args)
Overload 1: Get the backward-pointing vector
Overload 2: Get the backward-pointing vector
- translation(*args)
Overload 1: Initialize a translation matrix from a translation vector
Overload 2: Get the translation vector
Overload 3: Get the translation vector
- invertedRigid()
Get the inverted rigid transformation matrix. Must be a rigid transformation matrix.
- transformVector(vector)
Transform a vector
- transformPoint(vector)
Transform a point
- __neg__()
- __iadd__(other)
- __add__(other)
- __isub__(other)
- __sub__(other)
- __imul__(number)
- __itruediv__(*args)
- __truediv__(*args)
- flippedCols()
- flippedRows()
- row(row)
- __mul__(*args)
- transposed()
- diagonal()
- inverted()
- invertedOrthogonal()
- __len__()
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_lists() list
convert to a list of python lists
- __str__() str
Return str(self).
- class tissue_forge.fMatrix4(*args)
A 4x4 square matrix with
floatelements- static rotationX(angle)
Initialize a rotation matrix about the X (first) axis
- static rotationY(angle)
Initialize a rotation matrix about the Y (second) axis
- static rotationZ(angle)
Initialize a rotation matrix about the Z (third) axis
- static reflection(normal)
Initialize a reflection matrix about a plane using the normalized plane normal
- static shearingXY(amountX, amountY)
Initialize a shearing matrix about the X (first) and Y (second) axes
- static shearingXZ(amountX, amountZ)
Initialize a shearing matrix about the X (first) and Z (third) axes
- static shearingYZ(amountY, amountZ)
Initialize a shearing matrix about the Y (second) and Z (third) axes
- static orthographicProjection(size, near, far)
Initialize an orthographic projection matrix
- Parameters:
size (TissueForge::types::TVector2< float >) – size of the view
near (float) – distance to near clipping plane
far (float) – distance for far clipping plane
- static perspectiveProjection(*args)
Overload 1:
Initialize an perspective projection matrix
- Parameters:
size (TissueForge::types::TVector2< float >) – size of the near clipping plane
near (float) – distance to near clipping plane
far (float) – distance for far clipping plane
Overload 2:
Initialize a perspective projection matrix
- Parameters:
fov (float) – horizontal angle of the field of view
aspectRatio (float) – horizontal:vertical field of view aspect ratio
near (float) – distance to near clipping plane
far (float) – distance for far clipping plane
Overload 3:
Initialize a perspective projection matrix
- Parameters:
bottomLeft (TissueForge::types::TVector2< float >) – bottom-left point of field of view
topRight (TissueForge::types::TVector2< float >) – top-right point of field of view
near (float) – distance to near clipping plane
far (float) – distance for far clipping plane
- static lookAt(eye, target, up)
Initialize a matrix oriented towards a point
- Parameters:
eye (TissueForge::types::TVector3< float >) – location of view
target (TissueForge::types::TVector3< float >) – location of target point
up (TissueForge::types::TVector3< float >) – upward-normal of view
- isRigidTransformation()
Test whether the matrix is a rigid transformation
- rotationScaling()
Get the rotation and scaling matrix
- rotationShear()
Get the rotation and shear matrix
- rotation(*args)
Overload 1: Initialize a rotation matrix from a rotation angle and normalized axis of rotation
Overload 2: Get the rotation matrix
- rotationNormalized()
Get the normalized rotation matrix
- scalingSquared()
Get the squared scaling vector
- scaling(*args)
Overload 1: Initialize a scaling matrix from a scaling vector
Overload 2: Get the scaling vector
- uniformScalingSquared()
Get the uniform squared scaling vector
- uniformScaling()
Get the uniform scaling vector
- normalMatrix()
Get the normal matrix
- right(*args)
Overload 1: Get the rightward-pointing vector
Overload 2: Get the rightward-pointing vector
- up(*args)
Overload 1: Get the upward-pointing vector
Overload 2: Get the upward-pointing vector
- backward(*args)
Overload 1: Get the backward-pointing vector
Overload 2: Get the backward-pointing vector
- translation(*args)
Overload 1: Initialize a translation matrix from a translation vector
Overload 2: Get the translation vector
Overload 3: Get the translation vector
- invertedRigid()
Get the inverted rigid transformation matrix. Must be a rigid transformation matrix.
- transformVector(vector)
Transform a vector
- transformPoint(vector)
Transform a point
- __neg__()
- __iadd__(other)
- __add__(other)
- __isub__(other)
- __sub__(other)
- __imul__(number)
- __itruediv__(*args)
- __truediv__(*args)
- flippedCols()
- flippedRows()
- row(row)
- __mul__(*args)
- transposed()
- diagonal()
- inverted()
- invertedOrthogonal()
- __len__()
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_lists() list
convert to a list of python lists
- __str__() str
Return str(self).
- class tissue_forge.dQuaternion(*args)
A quaternion with
doubleelements- static rotation(angle, normalizedAxis)
Initialize from a rotation angle and normalized axis of rotation
- static fromMatrix(matrix)
Initialize from an orthogonal rotation matrix
- data(*args)
Overload 1: Get the underlying array
Overload 2: Get the underlying array
- __eq__(other)
Return self==value.
- __ne__(other)
Return self!=value.
- isNormalized()
Test whether the quaternion is normalized
- vector()
Get the 3-component vector
- scalar()
Get the scalar
- angle(*args)
Overload 1: Get the angle. Quaternion should be normalized.
Overload 2: Get the angle
- axis()
Get the rotation axis. Quaternion should be normalized.
- toMatrix()
Get the rotation matrix
- toEuler()
Get the Euler angles
- __neg__()
- __iadd__(other)
- __add__(other)
- __isub__(other)
- __sub__(other)
- __imul__(scalar)
- __itruediv__(*args)
- __truediv__(*args)
- __mul__(*args)
- dot()
Get the squared length
- length()
Get the length
- normalized()
Get the normalized quaternion
- conjugated()
Get the conjugated quaternion
- inverted()
Get the inverted quaternion
- invertedNormalized()
Get the inverted and normalized quaternion
- transformVector(vector)
Transform a vector
- transformVectorNormalized(vector)
Transform a normalized vector
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- class tissue_forge.fQuaternion(*args)
A quaternion with
floatelements- static rotation(angle, normalizedAxis)
Initialize from a rotation angle and normalized axis of rotation
- static fromMatrix(matrix)
Initialize from an orthogonal rotation matrix
- data(*args)
Overload 1: Get the underlying array
Overload 2: Get the underlying array
- __eq__(other)
Return self==value.
- __ne__(other)
Return self!=value.
- isNormalized()
Test whether the quaternion is normalized
- vector()
Get the 3-component vector
- scalar()
Get the scalar
- angle(*args)
Overload 1: Get the angle. Quaternion should be normalized.
Overload 2: Get the angle
- axis()
Get the rotation axis. Quaternion should be normalized.
- toMatrix()
Get the rotation matrix
- toEuler()
Get the Euler angles
- __neg__()
- __iadd__(other)
- __add__(other)
- __isub__(other)
- __sub__(other)
- __imul__(scalar)
- __itruediv__(*args)
- __truediv__(*args)
- __mul__(*args)
- dot()
Get the squared length
- length()
Get the length
- normalized()
Get the normalized quaternion
- conjugated()
Get the conjugated quaternion
- inverted()
Get the inverted quaternion
- invertedNormalized()
Get the inverted and normalized quaternion
- transformVector(vector)
Transform a vector
- transformVectorNormalized(vector)
Transform a normalized vector
- __getitem__(index: int)
- __setitem__(index: int, val)
- as_list() list
convert to a python list
- __str__() str
Return str(self).
- tissue_forge.FQuaternion
alias of
fQuaternion