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 double elements

static xAxis(*args, **kwargs) TissueForge::types::TVector2< double >

Get a vector in the X- (first-) direction of specified length

static yAxis(*args, **kwargs) TissueForge::types::TVector2< double >

Get a vector in the Y- (second-) direction of specified length

static xScale(scale: double) TissueForge::types::TVector2< double >

Get a scaling vector in the X- (first-) direction

static yScale(scale: double) TissueForge::types::TVector2< double >

Get a scaling vector in the Y- (second-) direction

x(*args) double

Overload 1: Get the X (first) component


Overload 2: Get the X (first) component

y(*args) double

Overload 1: Get the Y (second) component


Overload 2: Get the Y (second) component

flipped() TissueForge::types::TVector2< double >
dot(*args) double
cross(other: dVector2) double

Get the cross product with another vector

angle(other)

angle made with another vector

__len__() int
__iadd__(*args) TissueForge::types::TVector2< double > &
__add__(*args) TissueForge::types::TVector2< double >
__isub__(*args) TissueForge::types::TVector2< double > &
__sub__(*args) TissueForge::types::TVector2< double >
__imul__(*args) TissueForge::types::TVector2< double > &
__mul__(*args) TissueForge::types::TVector2< double >
__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 float elements

static xAxis(*args, **kwargs) TissueForge::types::TVector2< float >

Get a vector in the X- (first-) direction of specified length

static yAxis(*args, **kwargs) TissueForge::types::TVector2< float >

Get a vector in the Y- (second-) direction of specified length

static xScale(scale: float) TissueForge::types::TVector2< float >

Get a scaling vector in the X- (first-) direction

static yScale(scale: float) TissueForge::types::TVector2< float >

Get a scaling vector in the Y- (second-) direction

x(*args) float

Overload 1: Get the X (first) component


Overload 2: Get the X (first) component

y(*args) float

Overload 1: Get the Y (second) component


Overload 2: Get the Y (second) component

flipped() TissueForge::types::TVector2< float >
dot(*args) float
cross(other: fVector2) float

Get the cross product with another vector

angle(other)

angle made with another vector

__len__() int
__iadd__(*args) TissueForge::types::TVector2< float > &
__add__(*args) TissueForge::types::TVector2< float >
__isub__(*args) TissueForge::types::TVector2< float > &
__sub__(*args) TissueForge::types::TVector2< float >
__imul__(*args) TissueForge::types::TVector2< float > &
__mul__(*args) TissueForge::types::TVector2< float >
__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 int elements

static xAxis(*args, **kwargs) TissueForge::types::TVector2< int >

Get a vector in the X- (first-) direction of specified length

static yAxis(*args, **kwargs) TissueForge::types::TVector2< int >

Get a vector in the Y- (second-) direction of specified length

static xScale(scale: int) TissueForge::types::TVector2< int >

Get a scaling vector in the X- (first-) direction

static yScale(scale: int) TissueForge::types::TVector2< int >

Get a scaling vector in the Y- (second-) direction

x(*args) int

Overload 1: Get the X (first) component


Overload 2: Get the X (first) component

y(*args) int

Overload 1: Get the Y (second) component


Overload 2: Get the Y (second) component

flipped() TissueForge::types::TVector2< int >
dot(*args) int
cross(other: iVector2) int

Get the cross product with another vector

__len__() int
__iadd__(*args) TissueForge::types::TVector2< int > &
__add__(*args) TissueForge::types::TVector2< int >
__isub__(*args) TissueForge::types::TVector2< int > &
__sub__(*args) TissueForge::types::TVector2< int >
__imul__(*args) TissueForge::types::TVector2< int > &
__mul__(*args) TissueForge::types::TVector2< int >
__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 double elements

static xAxis(*args, **kwargs) TissueForge::types::TVector3< double >
static yAxis(*args, **kwargs) TissueForge::types::TVector3< double >
static zAxis(*args, **kwargs) TissueForge::types::TVector3< double >
static xScale(scale: double) TissueForge::types::TVector3< double >
static yScale(scale: double) TissueForge::types::TVector3< double >
static zScale(scale: double) TissueForge::types::TVector3< double >
x(*args) double

Overload 1: Get the X (first) component


Overload 2: Get the X (first) component

y(*args) double

Overload 1: Get the Y (second) component


Overload 2: Get the Y (second) component

z(*args) double

Overload 1: Get the Z (third) component


Overload 2: Get the Z (third) component

r(*args) double

Overload 1: Get the red (first) component


Overload 2: Get the red (first) component

g(*args) double

Overload 1: Get the green (second) component


Overload 2: Get the green (second) component

b(*args) double

Overload 1: Get the blue (third) component


Overload 2: Get the blue (third) component

xy()
flipped() TissueForge::types::TVector3< double >
dot(*args) double
cross(other: dVector3) TissueForge::types::TVector3< double >

Get the cross product with another vector

angle(other)

angle made with another vector

__len__() int
__iadd__(*args) TissueForge::types::TVector3< double > &
__add__(*args) TissueForge::types::TVector3< double >
__isub__(*args) TissueForge::types::TVector3< double > &
__sub__(*args) TissueForge::types::TVector3< double >
__imul__(*args) TissueForge::types::TVector3< double > &
__mul__(*args) TissueForge::types::TVector3< double >
__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 float elements

static xAxis(*args, **kwargs) TissueForge::types::TVector3< float >
static yAxis(*args, **kwargs) TissueForge::types::TVector3< float >
static zAxis(*args, **kwargs) TissueForge::types::TVector3< float >
static xScale(scale: float) TissueForge::types::TVector3< float >
static yScale(scale: float) TissueForge::types::TVector3< float >
static zScale(scale: float) TissueForge::types::TVector3< float >
x(*args) float

Overload 1: Get the X (first) component


Overload 2: Get the X (first) component

y(*args) float

Overload 1: Get the Y (second) component


Overload 2: Get the Y (second) component

z(*args) float

Overload 1: Get the Z (third) component


Overload 2: Get the Z (third) component

r(*args) float

Overload 1: Get the red (first) component


Overload 2: Get the red (first) component

g(*args) float

Overload 1: Get the green (second) component


Overload 2: Get the green (second) component

b(*args) float

Overload 1: Get the blue (third) component


Overload 2: Get the blue (third) component

xy()
flipped() TissueForge::types::TVector3< float >
dot(*args) float
cross(other: fVector3) TissueForge::types::TVector3< float >

Get the cross product with another vector

angle(other)

angle made with another vector

__len__() int
__iadd__(*args) TissueForge::types::TVector3< float > &
__add__(*args) TissueForge::types::TVector3< float >
__isub__(*args) TissueForge::types::TVector3< float > &
__sub__(*args) TissueForge::types::TVector3< float >
__imul__(*args) TissueForge::types::TVector3< float > &
__mul__(*args) TissueForge::types::TVector3< float >
__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 int elements

static xAxis(*args, **kwargs) TissueForge::types::TVector3< int >
static yAxis(*args, **kwargs) TissueForge::types::TVector3< int >
static zAxis(*args, **kwargs) TissueForge::types::TVector3< int >
static xScale(scale: int) TissueForge::types::TVector3< int >
static yScale(scale: int) TissueForge::types::TVector3< int >
static zScale(scale: int) TissueForge::types::TVector3< int >
x(*args) int

Overload 1: Get the X (first) component


Overload 2: Get the X (first) component

y(*args) int

Overload 1: Get the Y (second) component


Overload 2: Get the Y (second) component

z(*args) int

Overload 1: Get the Z (third) component


Overload 2: Get the Z (third) component

r(*args) int

Overload 1: Get the red (first) component


Overload 2: Get the red (first) component

g(*args) int

Overload 1: Get the green (second) component


Overload 2: Get the green (second) component

b(*args) int

Overload 1: Get the blue (third) component


Overload 2: Get the blue (third) component

xy(*args) TissueForge::types::TVector2< int > const

Overload 1: Get the x-y (first-second) components


Overload 2: Get the x-y (first-second) components

flipped() TissueForge::types::TVector3< int >
dot(*args) int
cross(other: iVector3) TissueForge::types::TVector3< int >

Get the cross product with another vector

__len__() int
__iadd__(*args) TissueForge::types::TVector3< int > &
__add__(*args) TissueForge::types::TVector3< int >
__isub__(*args) TissueForge::types::TVector3< int > &
__sub__(*args) TissueForge::types::TVector3< int >
__imul__(*args) TissueForge::types::TVector3< int > &
__mul__(*args) TissueForge::types::TVector3< int >
__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 double elements

x(*args) double

Overload 1: Get the X (first) component


Overload 2: Get the X (first) component

y(*args) double

Overload 1: Get the Y (second) component


Overload 2: Get the Y (second) component

z(*args) double

Overload 1: Get the Z (third) component


Overload 2: Get the Z (third) component

w(*args) double

Overload 1: Get the W (fourth) component


Overload 2: Get the W (fourth) component

r(*args) double

Overload 1: Get the red (first) component


Overload 2: Get the red (first) component

g(*args) double

Overload 1: Get the green (second) component


Overload 2: Get the green (second) component

b(*args) double

Overload 1: Get the blue (third) component


Overload 2: Get the blue (third) component

a(*args) double

Overload 1: Get the alpha (fourth) component


Overload 2: Get the alpha (fourth) component

xyz()
rgb(*args) TissueForge::types::TVector3< double > const

Overload 1: Get the red-green-blue (first-second-third) components


Overload 2: Get the red-green-blue (first-second-third) components

xy(*args) TissueForge::types::TVector2< double > const

Overload 1: Get the x-y (first-second) components


Overload 2: Get the x-y (first-second) components

flipped() TissueForge::types::TVector4< double >
dot(*args) double
angle(other)

angle made with another vector

__len__() int
__iadd__(*args) TissueForge::types::TVector4< double > &
__add__(*args) TissueForge::types::TVector4< double >
__isub__(*args) TissueForge::types::TVector4< double > &
__sub__(*args) TissueForge::types::TVector4< double >
__imul__(*args) TissueForge::types::TVector4< double > &
__mul__(*args) TissueForge::types::TVector4< double >
__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 float elements

x(*args) float

Overload 1: Get the X (first) component


Overload 2: Get the X (first) component

y(*args) float

Overload 1: Get the Y (second) component


Overload 2: Get the Y (second) component

z(*args) float

Overload 1: Get the Z (third) component


Overload 2: Get the Z (third) component

w(*args) float

Overload 1: Get the W (fourth) component


Overload 2: Get the W (fourth) component

r(*args) float

Overload 1: Get the red (first) component


Overload 2: Get the red (first) component

g(*args) float

Overload 1: Get the green (second) component


Overload 2: Get the green (second) component

b(*args) float

Overload 1: Get the blue (third) component


Overload 2: Get the blue (third) component

a(*args) float

Overload 1: Get the alpha (fourth) component


Overload 2: Get the alpha (fourth) component

xyz()
rgb(*args) TissueForge::types::TVector3< float > const

Overload 1: Get the red-green-blue (first-second-third) components


Overload 2: Get the red-green-blue (first-second-third) components

xy(*args) TissueForge::types::TVector2< float > const

Overload 1: Get the x-y (first-second) components


Overload 2: Get the x-y (first-second) components

flipped() TissueForge::types::TVector4< float >
dot(*args) float
angle(other)

angle made with another vector

__len__() int
__iadd__(*args) TissueForge::types::TVector4< float > &
__add__(*args) TissueForge::types::TVector4< float >
__isub__(*args) TissueForge::types::TVector4< float > &
__sub__(*args) TissueForge::types::TVector4< float >
__imul__(*args) TissueForge::types::TVector4< float > &
__mul__(*args) TissueForge::types::TVector4< float >
__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 int elements

x(*args) int

Overload 1: Get the X (first) component


Overload 2: Get the X (first) component

y(*args) int

Overload 1: Get the Y (second) component


Overload 2: Get the Y (second) component

z(*args) int

Overload 1: Get the Z (third) component


Overload 2: Get the Z (third) component

w(*args) int

Overload 1: Get the W (fourth) component


Overload 2: Get the W (fourth) component

r(*args) int

Overload 1: Get the red (first) component


Overload 2: Get the red (first) component

g(*args) int

Overload 1: Get the green (second) component


Overload 2: Get the green (second) component

b(*args) int

Overload 1: Get the blue (third) component


Overload 2: Get the blue (third) component

a(*args) int

Overload 1: Get the alpha (fourth) component


Overload 2: Get the alpha (fourth) component

xyz(*args) TissueForge::types::TVector3< int > const

Overload 1: Get the x-y-z (first-second-third) components


Overload 2: Get the x-y-z (first-second-third) components

rgb(*args) TissueForge::types::TVector3< int > const

Overload 1: Get the red-green-blue (first-second-third) components


Overload 2: Get the red-green-blue (first-second-third) components

xy(*args) TissueForge::types::TVector2< int > const

Overload 1: Get the x-y (first-second) components


Overload 2: Get the x-y (first-second) components

flipped() TissueForge::types::TVector4< int >
dot(*args) int
__len__() int
__iadd__(*args) TissueForge::types::TVector4< int > &
__add__(*args) TissueForge::types::TVector4< int >
__isub__(*args) TissueForge::types::TVector4< int > &
__sub__(*args) TissueForge::types::TVector4< int >
__imul__(*args) TissueForge::types::TVector4< int > &
__mul__(*args) TissueForge::types::TVector4< int >
__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 double elements

static rotation(angle: double) TissueForge::types::TMatrix3< double >

Initialize a rotation matrix

static shearingX(amount: double) TissueForge::types::TMatrix3< double >

Initialize a shearing matrix along the X (first) direction

static shearingY(amount: double) TissueForge::types::TMatrix3< double >

Initialize a shearing matrix along the Y (second) direction

isRigidTransformation() bool

Test whether the matrix is a rigid transformation

invertedRigid() TissueForge::types::TMatrix3< double >

Get the inverted rigid transformation. Must be a rigid transformation.

__neg__() TissueForge::types::TMatrix3< double >
__iadd__(other: dMatrix3) TissueForge::types::TMatrix3< double > &
__add__(other: dMatrix3) TissueForge::types::TMatrix3< double >
__isub__(other: dMatrix3) TissueForge::types::TMatrix3< double > &
__sub__(other: dMatrix3) TissueForge::types::TMatrix3< double >
__imul__(number: double) TissueForge::types::TMatrix3< double > &
__mul__(*args) TissueForge::types::TVector3< double >
__itruediv__(*args)
__truediv__(*args)
flippedCols() TissueForge::types::TMatrix3< double >
flippedRows() TissueForge::types::TMatrix3< double >
row(row: std::size_t) TissueForge::types::TVector3< double >
__mul__(*args) TissueForge::types::TVector3< double >
transposed() TissueForge::types::TMatrix3< double >
diagonal() TissueForge::types::TVector3< double >
inverted() TissueForge::types::TMatrix3< double >
invertedOrthogonal() TissueForge::types::TMatrix3< double >
__len__() int
__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 float elements

static rotation(angle: float) TissueForge::types::TMatrix3< float >

Initialize a rotation matrix

static shearingX(amount: float) TissueForge::types::TMatrix3< float >

Initialize a shearing matrix along the X (first) direction

static shearingY(amount: float) TissueForge::types::TMatrix3< float >

Initialize a shearing matrix along the Y (second) direction

isRigidTransformation() bool

Test whether the matrix is a rigid transformation

invertedRigid() TissueForge::types::TMatrix3< float >

Get the inverted rigid transformation. Must be a rigid transformation.

__neg__() TissueForge::types::TMatrix3< float >
__iadd__(other: fMatrix3) TissueForge::types::TMatrix3< float > &
__add__(other: fMatrix3) TissueForge::types::TMatrix3< float >
__isub__(other: fMatrix3) TissueForge::types::TMatrix3< float > &
__sub__(other: fMatrix3) TissueForge::types::TMatrix3< float >
__imul__(number: float) TissueForge::types::TMatrix3< float > &
__mul__(*args) TissueForge::types::TVector3< float >
__itruediv__(*args)
__truediv__(*args)
flippedCols() TissueForge::types::TMatrix3< float >
flippedRows() TissueForge::types::TMatrix3< float >
row(row: std::size_t) TissueForge::types::TVector3< float >
__mul__(*args) TissueForge::types::TVector3< float >
transposed() TissueForge::types::TMatrix3< float >
diagonal() TissueForge::types::TVector3< float >
inverted() TissueForge::types::TMatrix3< float >
invertedOrthogonal() TissueForge::types::TMatrix3< float >
__len__() int
__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 double elements

static rotationX(angle: double) TissueForge::types::TMatrix4< double >

Initialize a rotation matrix about the X (first) axis

static rotationY(angle: double) TissueForge::types::TMatrix4< double >

Initialize a rotation matrix about the Y (second) axis

static rotationZ(angle: double) TissueForge::types::TMatrix4< double >

Initialize a rotation matrix about the Z (third) axis

static reflection(normal: dVector3) TissueForge::types::TMatrix4< double >

Initialize a reflection matrix about a plane using the normalized plane normal

static shearingXY(amountX: double, amountY: double) TissueForge::types::TMatrix4< double >

Initialize a shearing matrix about the X (first) and Y (second) axes

static shearingXZ(amountX: double, amountZ: double) TissueForge::types::TMatrix4< double >

Initialize a shearing matrix about the X (first) and Z (third) axes

static shearingYZ(amountY: double, amountZ: double) TissueForge::types::TMatrix4< double >

Initialize a shearing matrix about the Y (second) and Z (third) axes

static orthographicProjection(size: dVector2, near: double, far: double) TissueForge::types::TMatrix4< double >

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) TissueForge::types::TMatrix4< double >

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: dVector3, target: dVector3, up: dVector3) TissueForge::types::TMatrix4< double >

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() bool

Test whether the matrix is a rigid transformation

rotationScaling() TissueForge::types::TMatrix3< double >

Get the rotation and scaling matrix

rotationShear() TissueForge::types::TMatrix3< double >

Get the rotation and shear matrix

rotation(*args) TissueForge::types::TMatrix3< double >

Overload 1: Initialize a rotation matrix from a rotation angle and normalized axis of rotation


Overload 2: Get the rotation matrix

rotationNormalized() TissueForge::types::TMatrix3< double >

Get the normalized rotation matrix

scalingSquared() TissueForge::types::TVector3< double >

Get the squared scaling vector

scaling(*args) TissueForge::types::TVector3< double >

Overload 1: Initialize a scaling matrix from a scaling vector


Overload 2: Get the scaling vector

uniformScalingSquared() double

Get the uniform squared scaling vector

uniformScaling() double

Get the uniform scaling vector

normalMatrix() TissueForge::types::TMatrix3< double >

Get the normal matrix

right(*args) TissueForge::types::TVector3< double >

Overload 1: Get the rightward-pointing vector


Overload 2: Get the rightward-pointing vector

up(*args) TissueForge::types::TVector3< double >

Overload 1: Get the upward-pointing vector


Overload 2: Get the upward-pointing vector

backward(*args) TissueForge::types::TVector3< double >

Overload 1: Get the backward-pointing vector


Overload 2: Get the backward-pointing vector

translation(*args) TissueForge::types::TVector3< double >

Overload 1: Initialize a translation matrix from a translation vector


Overload 2: Get the translation vector


Overload 3: Get the translation vector

invertedRigid() TissueForge::types::TMatrix4< double >

Get the inverted rigid transformation matrix. Must be a rigid transformation matrix.

transformVector(vector: dVector3) TissueForge::types::TVector3< double >

Transform a vector

transformPoint(vector: dVector3) TissueForge::types::TVector3< double >

Transform a point

__neg__() TissueForge::types::TMatrix4< double >
__iadd__(other: dMatrix4) TissueForge::types::TMatrix4< double > &
__add__(other: dMatrix4) TissueForge::types::TMatrix4< double >
__isub__(other: dMatrix4) TissueForge::types::TMatrix4< double > &
__sub__(other: dMatrix4) TissueForge::types::TMatrix4< double >
__imul__(number: double) TissueForge::types::TMatrix4< double > &
__itruediv__(*args)
__truediv__(*args)
flippedCols() TissueForge::types::TMatrix4< double >
flippedRows() TissueForge::types::TMatrix4< double >
row(row: std::size_t) TissueForge::types::TVector4< double >
__mul__(*args) TissueForge::types::TVector4< double >
transposed() TissueForge::types::TMatrix4< double >
diagonal() TissueForge::types::TVector4< double >
inverted() TissueForge::types::TMatrix4< double >
invertedOrthogonal() TissueForge::types::TMatrix4< double >
__len__() int
__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 float elements

static rotationX(angle: float) TissueForge::types::TMatrix4< float >

Initialize a rotation matrix about the X (first) axis

static rotationY(angle: float) TissueForge::types::TMatrix4< float >

Initialize a rotation matrix about the Y (second) axis

static rotationZ(angle: float) TissueForge::types::TMatrix4< float >

Initialize a rotation matrix about the Z (third) axis

static reflection(normal: fVector3) TissueForge::types::TMatrix4< float >

Initialize a reflection matrix about a plane using the normalized plane normal

static shearingXY(amountX: float, amountY: float) TissueForge::types::TMatrix4< float >

Initialize a shearing matrix about the X (first) and Y (second) axes

static shearingXZ(amountX: float, amountZ: float) TissueForge::types::TMatrix4< float >

Initialize a shearing matrix about the X (first) and Z (third) axes

static shearingYZ(amountY: float, amountZ: float) TissueForge::types::TMatrix4< float >

Initialize a shearing matrix about the Y (second) and Z (third) axes

static orthographicProjection(size: fVector2, near: float, far: float) TissueForge::types::TMatrix4< float >

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) TissueForge::types::TMatrix4< float >

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: fVector3, target: fVector3, up: fVector3) TissueForge::types::TMatrix4< float >

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() bool

Test whether the matrix is a rigid transformation

rotationScaling() TissueForge::types::TMatrix3< float >

Get the rotation and scaling matrix

rotationShear() TissueForge::types::TMatrix3< float >

Get the rotation and shear matrix

rotation(*args) TissueForge::types::TMatrix3< float >

Overload 1: Initialize a rotation matrix from a rotation angle and normalized axis of rotation


Overload 2: Get the rotation matrix

rotationNormalized() TissueForge::types::TMatrix3< float >

Get the normalized rotation matrix

scalingSquared() TissueForge::types::TVector3< float >

Get the squared scaling vector

scaling(*args) TissueForge::types::TVector3< float >

Overload 1: Initialize a scaling matrix from a scaling vector


Overload 2: Get the scaling vector

uniformScalingSquared() float

Get the uniform squared scaling vector

uniformScaling() float

Get the uniform scaling vector

normalMatrix() TissueForge::types::TMatrix3< float >

Get the normal matrix

right(*args) TissueForge::types::TVector3< float >

Overload 1: Get the rightward-pointing vector


Overload 2: Get the rightward-pointing vector

up(*args) TissueForge::types::TVector3< float >

Overload 1: Get the upward-pointing vector


Overload 2: Get the upward-pointing vector

backward(*args) TissueForge::types::TVector3< float >

Overload 1: Get the backward-pointing vector


Overload 2: Get the backward-pointing vector

translation(*args) TissueForge::types::TVector3< float >

Overload 1: Initialize a translation matrix from a translation vector


Overload 2: Get the translation vector


Overload 3: Get the translation vector

invertedRigid() TissueForge::types::TMatrix4< float >

Get the inverted rigid transformation matrix. Must be a rigid transformation matrix.

transformVector(vector: fVector3) TissueForge::types::TVector3< float >

Transform a vector

transformPoint(vector: fVector3) TissueForge::types::TVector3< float >

Transform a point

__neg__() TissueForge::types::TMatrix4< float >
__iadd__(other: fMatrix4) TissueForge::types::TMatrix4< float > &
__add__(other: fMatrix4) TissueForge::types::TMatrix4< float >
__isub__(other: fMatrix4) TissueForge::types::TMatrix4< float > &
__sub__(other: fMatrix4) TissueForge::types::TMatrix4< float >
__imul__(number: float) TissueForge::types::TMatrix4< float > &
__itruediv__(*args)
__truediv__(*args)
flippedCols() TissueForge::types::TMatrix4< float >
flippedRows() TissueForge::types::TMatrix4< float >
row(row: std::size_t) TissueForge::types::TVector4< float >
__mul__(*args) TissueForge::types::TVector4< float >
transposed() TissueForge::types::TMatrix4< float >
diagonal() TissueForge::types::TVector4< float >
inverted() TissueForge::types::TMatrix4< float >
invertedOrthogonal() TissueForge::types::TMatrix4< float >
__len__() int
__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 double elements

static rotation(angle: double, normalizedAxis: dVector3) TissueForge::types::TQuaternion< double >

Initialize from a rotation angle and normalized axis of rotation

static fromMatrix(matrix: dMatrix3) TissueForge::types::TQuaternion< double >

Initialize from an orthogonal rotation matrix

data(*args) double const *

Overload 1: Get the underlying array


Overload 2: Get the underlying array

__eq__(other: dQuaternion) bool

Return self==value.

__ne__(other: dQuaternion) bool

Return self!=value.

isNormalized() bool

Test whether the quaternion is normalized

vector() TissueForge::types::TVector3< double > const

Get the 3-component vector

scalar() double

Get the scalar

angle(*args) double

Overload 1: Get the angle. Quaternion should be normalized.


Overload 2: Get the angle

axis() TissueForge::types::TVector3< double >

Get the rotation axis. Quaternion should be normalized.

toMatrix() TissueForge::types::TMatrix3< double >

Get the rotation matrix

toEuler() TissueForge::types::TVector3< double >

Get the Euler angles

__neg__() TissueForge::types::TQuaternion< double >
__iadd__(other: dQuaternion) TissueForge::types::TQuaternion< double > &
__add__(other: dQuaternion) TissueForge::types::TQuaternion< double >
__isub__(other: dQuaternion) TissueForge::types::TQuaternion< double > &
__sub__(other: dQuaternion) TissueForge::types::TQuaternion< double >
__imul__(scalar: double) TissueForge::types::TQuaternion< double > &
__itruediv__(*args)
__truediv__(*args)
__mul__(*args) TissueForge::types::TQuaternion< double >
dot() double

Get the squared length

length() double

Get the length

normalized() TissueForge::types::TQuaternion< double >

Get the normalized quaternion

conjugated() TissueForge::types::TQuaternion< double >

Get the conjugated quaternion

inverted() TissueForge::types::TQuaternion< double >

Get the inverted quaternion

invertedNormalized() TissueForge::types::TQuaternion< double >

Get the inverted and normalized quaternion

transformVector(vector: dVector3) TissueForge::types::TVector3< double >

Transform a vector

transformVectorNormalized(vector: dVector3) TissueForge::types::TVector3< double >

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 float elements

static rotation(angle: float, normalizedAxis: fVector3) TissueForge::types::TQuaternion< float >

Initialize from a rotation angle and normalized axis of rotation

static fromMatrix(matrix: fMatrix3) TissueForge::types::TQuaternion< float >

Initialize from an orthogonal rotation matrix

data(*args) float const *

Overload 1: Get the underlying array


Overload 2: Get the underlying array

__eq__(other: fQuaternion) bool

Return self==value.

__ne__(other: fQuaternion) bool

Return self!=value.

isNormalized() bool

Test whether the quaternion is normalized

vector() TissueForge::types::TVector3< float > const

Get the 3-component vector

scalar() float

Get the scalar

angle(*args) float

Overload 1: Get the angle. Quaternion should be normalized.


Overload 2: Get the angle

axis() TissueForge::types::TVector3< float >

Get the rotation axis. Quaternion should be normalized.

toMatrix() TissueForge::types::TMatrix3< float >

Get the rotation matrix

toEuler() TissueForge::types::TVector3< float >

Get the Euler angles

__neg__() TissueForge::types::TQuaternion< float >
__iadd__(other: fQuaternion) TissueForge::types::TQuaternion< float > &
__add__(other: fQuaternion) TissueForge::types::TQuaternion< float >
__isub__(other: fQuaternion) TissueForge::types::TQuaternion< float > &
__sub__(other: fQuaternion) TissueForge::types::TQuaternion< float >
__imul__(scalar: float) TissueForge::types::TQuaternion< float > &
__itruediv__(*args)
__truediv__(*args)
__mul__(*args) TissueForge::types::TQuaternion< float >
dot() float

Get the squared length

length() float

Get the length

normalized() TissueForge::types::TQuaternion< float >

Get the normalized quaternion

conjugated() TissueForge::types::TQuaternion< float >

Get the conjugated quaternion

inverted() TissueForge::types::TQuaternion< float >

Get the inverted quaternion

invertedNormalized() TissueForge::types::TQuaternion< float >

Get the inverted and normalized quaternion

transformVector(vector: fVector3) TissueForge::types::TVector3< float >

Transform a vector

transformVectorNormalized(vector: fVector3) TissueForge::types::TVector3< float >

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.FVector2

alias of fVector2

tissue_forge.FVector3

alias of fVector3

tissue_forge.FVector4

alias of fVector4

tissue_forge.FMatrix3

alias of fMatrix3

tissue_forge.FMatrix4

alias of fMatrix4

tissue_forge.FQuaternion

alias of fQuaternion