tomato 1.2.4 Reference Manual

Index

  • Type the index terms you want to search for in the text input field.
  • Matching terms will be shown incrementally as you type.
  • Press Enter to navigate to the target of the first displayed index entry.
  • Alternatively, Tab to move to the index entry of interest and then press Enter to navigate to that documentation page.
  • To jump to this page from any other documentation page, press browser-specific shortcut modifiers with i. For example, on IE and Edge this would be Alt-i while on Firefox and Chrome Alt-Shift-i. Other browsers and platforms may differ.
  • !=
    TRIANGLEOBJ != other ?tolerance?
    Gets value that indicates whether any pair of elements in two specified points is not equal.
    ::tomato::mathtriangle::Triangle
  • !=
    CSYSOBJ != other ?tolerance?
    Gets value that indicates whether any pair of elements in two specified coordinate system is not equal.
    ::tomato::mathcsys::Csys
  • !=
    QUATERNIONOBJ != obj ?tolerance?
    Inequality operator for two quaternions if $obj is quaternion component.
    Inequality operator for quaternion and double if $obj is double.
    ::tomato::mathquat::Quaternion
  • !=
    LINE3DOBJ != other ?tolerance?
    Gets value that indicates whether any pair of elements in two specified lines is not equal.
    ::tomato::mathline3d::Line3d
  • !=
    RAY3DOBJ != other ?tolerance?
    Gets value that indicates whether any pair of elements in two specified rays is not equal.
    ::tomato::mathray3d::Ray3d
  • !=
    POINT3DOBJ != other ?tolerance?
    Gets value that indicates whether any pair of elements in two specified points is not equal.
    ::tomato::mathpt3d::Point3d
  • !=
    PLANEOBJ != other ?tolerance?
    Gets value that indicates whether any pair of elements in two specified planes is not equal.
    ::tomato::mathplane::Plane
  • !=
    VECTOR3DOBJ != other ?tolerance?
    Gets value that indicates whether any pair of elements in two specified vectors is not equal.
    ::tomato::mathvec3d::Vector3d
  • !=
    MATRIXOBJ != other ?tolerance?
    Gets value that indicates whether any pair of elements in two specified matrixes is not equal.
    ::tomato::mathmatrix::Matrix
  • *
    QUATERNIONOBJ * obj
    Multiply a floating point number with a quaternion, if $obj is double.
    Or multiply a quaternion with a quaternion, if $obj is an Quaternion object.
    ::tomato::mathquat::Quaternion
  • *
    VECTOR3DOBJ * type
    Multiplies a vector by a scalar if $type is a scale or Compute the Dot product if $type is an object.
    ::tomato::mathvec3d::Vector3d
  • +
    QUATERNIONOBJ + obj
    Add a floating point number to a quaternion, if $obj is double or add a quaternion to a quaternion, if $obj is an Quaternion object.
    ::tomato::mathquat::Quaternion
  • +
    POINT3DOBJ + other
    Adds a point and a vector together
    ::tomato::mathpt3d::Point3d
  • +
    VECTOR3DOBJ + other
    Adds two vectors
    ::tomato::mathvec3d::Vector3d
  • -
    QUATERNIONOBJ - obj
    Subtract a floating point number from a quaternion, if $obj is double.
    Or subtract a quaternion from a quaternion, if $obj is an Quaternion object.
    ::tomato::mathquat::Quaternion
  • -
    POINT3DOBJ - other
    Subtracts a vector from a point or Subtracts the first point from the second point
    ::tomato::mathpt3d::Point3d
  • -
    VECTOR3DOBJ - other
    Subtracts two vectors
    ::tomato::mathvec3d::Vector3d
  • /
    QUATERNIONOBJ / obj
    Divide a quaternion by a floating point number, if $obj is double.
    Or divide a quaternion by a quaternion, if $obj is an Quaternion object.
    ::tomato::mathquat::Quaternion
  • /
    VECTOR3DOBJ / scale
    Divides a vector by a scalar.
    ::tomato::mathvec3d::Vector3d
  • ==
    TRIANGLEOBJ == other ?tolerance?
    Gets value that indicates whether each pair of elements in two specified points is equal.
    ::tomato::mathtriangle::Triangle
  • ==
    CSYSOBJ == other ?tolerance?
    Gets value that indicates whether each pair of elements in two specified coordinate system is equal.
    ::tomato::mathcsys::Csys
  • ==
    QUATERNIONOBJ == obj ?tolerance?
    Equality operator for two quaternions if $obj is quaternion component.
    Equality operator for quaternion and double if $obj is double.
    ::tomato::mathquat::Quaternion
  • ==
    LINE3DOBJ == other ?tolerance?
    Gets value that indicates whether each pair of elements in two specified lines is equal.
    ::tomato::mathline3d::Line3d
  • ==
    RAY3DOBJ == other ?tolerance?
    Gets value that indicates whether each pair of elements in two specified rays is equal.
    ::tomato::mathray3d::Ray3d
  • ==
    POINT3DOBJ == other ?tolerance?
    Gets value that indicates whether each pair of elements in two specified points is equal.
    ::tomato::mathpt3d::Point3d
  • ==
    PLANEOBJ == other ?tolerance?
    Gets value that indicates whether each pair of elements in two specified planes is equal.
    ::tomato::mathplane::Plane
  • ==
    VECTOR3DOBJ == other ?tolerance?
    Gets value that indicates whether each pair of elements in two specified vectors is equal.
    ::tomato::mathvec3d::Vector3d
  • ==
    MATRIXOBJ == other ?tolerance?
    Gets value that indicates whether each pair of elements in two specified matrixes is equal.
    ::tomato::mathmatrix::Matrix
  • ^
    QUATERNIONOBJ ^ obj
    Raise a quaternion to a floating point number.
    ::tomato::mathquat::Quaternion
  • A
    TRIANGLEOBJ A 
    Returns the first point of the Triangle mathpt3d::Point3d.
    ::tomato::mathtriangle::Triangle
  • A
    PLANEOBJ A 
    Gets the Normal x component.
    ::tomato::mathplane::Plane
  • AB
    TRIANGLEOBJ AB 
    Gets Length of AB side.
    ::tomato::mathtriangle::Triangle
  • AbsoluteDistanceTo
    PLANEOBJ AbsoluteDistanceTo point
    Gets the distance to the point.
    ::tomato::mathplane::Plane
  • AC
    TRIANGLEOBJ AC 
    Gets Length of AC side.
    ::tomato::mathtriangle::Triangle
  • Add
    MATRIXOBJ Add other
    Add matrix to another matrix
    ::tomato::mathmatrix::Matrix
  • Aera
    TRIANGLEOBJ Aera 
    Gets Aera of the triangle.
    ::tomato::mathtriangle::Triangle
  • Angle
    QUATERNIONOBJ Angle 
    Gets the angle (in radians) describing the magnitude of the quaternion rotation about it's rotation axis.
    ::tomato::mathquat::Quaternion
  • AngleA
    TRIANGLEOBJ AngleA 
    Gets Angle at the vertex A
    ::tomato::mathtriangle::Triangle
  • AngleB
    TRIANGLEOBJ AngleB 
    Gets Angle at the vertex B
    ::tomato::mathtriangle::Triangle
  • AngleC
    TRIANGLEOBJ AngleC 
    Gets Angle at the vertex C
    ::tomato::mathtriangle::Triangle
  • AngleTo
    VECTOR3DOBJ AngleTo v
    Compute the angle between this vector and another using the arccosine of the dot product.
    ::tomato::mathvec3d::Vector3d
  • Arg
    QUATERNIONOBJ Arg 
    Gets the argument phi = arg(q) of the quaternion q, such that q = r*(cos(phi) + u*sin(phi)) = r*exp(phi*u)
    where r is the absolute and u the unit vector of q.
    ::tomato::mathquat::Quaternion
  • Average
    Average listaxisPt
    Gets the average value of list
    ::tomato::mathpt3d
  • B
    TRIANGLEOBJ B 
    Returns the second point of the Triangle mathpt3d::Point3d.
    ::tomato::mathtriangle::Triangle
  • B
    PLANEOBJ B 
    Gets the Normal y component.
    ::tomato::mathplane::Plane
  • BaseChangeMatrix
    CSYSOBJ BaseChangeMatrix 
    Gets the base change matrix
    ::tomato::mathcsys::Csys
  • BaseClass
    CSYSOBJ BaseClass 
    Gets the base class (Matrix obj)
    ::tomato::mathcsys::Csys
  • BC
    TRIANGLEOBJ BC 
    Gets Length of BC side.
    ::tomato::mathtriangle::Triangle
  • BisectorA
    TRIANGLEOBJ BisectorA 
    Angle bisector at the vertex A
    ::tomato::mathtriangle::Triangle
  • BisectorB
    TRIANGLEOBJ BisectorB 
    Angle bisector at the vertex B
    ::tomato::mathtriangle::Triangle
  • BisectorC
    TRIANGLEOBJ BisectorC 
    Angle bisector at the vertex C
    ::tomato::mathtriangle::Triangle
  • C
    TRIANGLEOBJ C 
    Returns the third point of the Triangle mathpt3d::Point3d.
    ::tomato::mathtriangle::Triangle
  • C
    PLANEOBJ C 
    Gets the Normal z component.
    ::tomato::mathplane::Plane
  • Centroid
    TRIANGLEOBJ Centroid 
    Gets Centroid of the triangle
    ::tomato::mathtriangle::Triangle
  • Centroid
    Centroid listPts
    Gets the centroid of an arbitrary collection of points
    ::tomato::mathpt3d
  • Cget
    VECTOR3DOBJ Cget axis
    Gets component value.
    ::tomato::mathvec3d::Vector3d
  • Clamp
    Clamp n min max
    Clamps a number between a minimum and a maximum.
    ::tomato::helper
  • Clamp
    Clamp vec min max
    Clamp a vector to the given minimum and maximum vectors.
    ::tomato::mathvec3d
  • ClosestPointsBetween
    LINE3DOBJ ClosestPointsBetween other ?mustBeOnSegments?
    Computes the pair of points which represent the closest distance between this Line3D and another Line3D, with the first point being the point on this Line3D, and the second point being the corresponding point on the other Line3D. If the lines intersect the points will be identical, if the lines are parallel the first point will be the start point of this line.
    ::tomato::mathline3d::Line3d
  • ClosestPointTo
    LINE3DOBJ ClosestPointTo p mustBeOnSegment
    Gets the closest point on the line to the given point.
    ::tomato::mathline3d::Line3d
  • ColumnCount
    MATRIXOBJ ColumnCount 
    Gets the number of columns.
    ::tomato::mathmatrix::Matrix
  • ComponentMax
    ComponentMax v1 v2
    A vector created from the largest of the corresponding components of the given vectors.
    ::tomato::mathvec3d
  • ComponentMin
    ComponentMin v1 v2
    A vector created from the smallest of the corresponding components of the given vectors.
    ::tomato::mathvec3d
  • Configure
    POINT3DOBJ Configure ?args?
    Configure component value.
    ::tomato::mathpt3d::Point3d
  • Configure
    VECTOR3DOBJ Configure ?args?
    Configure component value.
    ::tomato::mathvec3d::Vector3d
  • Conjugate
    QUATERNIONOBJ Conjugate 
    Conjugate this quaternion.
    ::tomato::mathquat::Quaternion
  • constructor
    Triangle create OBJNAME ?args?
    Triangle new ?args?
    Initializes a new Triangle Class.
    ::tomato::mathtriangle::Triangle
  • constructor
    Csys create OBJNAME ?args?
    Csys new ?args?
    Initializes a new Coordinate System Class.
    ::tomato::mathcsys::Csys
  • constructor
    Quaternion create OBJNAME ?args?
    Quaternion new ?args?
    Initializes a new Quaternion Class.
    ::tomato::mathquat::Quaternion
  • constructor
    Line3d create OBJNAME pt other
    Line3d new pt other
    Initializes a new Line3d Class.
    ::tomato::mathline3d::Line3d
  • constructor
    Ray3d create OBJNAME point direction
    Ray3d new point direction
    Initializes a new Ray3d Class.
    ::tomato::mathray3d::Ray3d
  • constructor
    Point3d create OBJNAME ?args?
    Point3d new ?args?
    Initializes a new Point3d Class.
    ::tomato::mathpt3d::Point3d
  • constructor
    Plane create OBJNAME ?args?
    Plane new ?args?
    Initializes a new Plane Class. Constructs a Plane from the given normal and distance along the normal from the origin.
    ::tomato::mathplane::Plane
  • constructor
    Vector3d create OBJNAME ?args?
    Vector3d new ?args?
    Initializes a new Vector3d Class.
    ::tomato::mathvec3d::Vector3d
  • constructor
    Matrix create OBJNAME row col ?value?
    Matrix new row col ?value?
    Initializes a new base class for Matrix Class.
    ::tomato::mathmatrix::Matrix
  • CopySubMatrixTo
    CopySubMatrixTo target storage sourceRowIndex targetRowIndex rowCount sourceColumnIndex targetColumnIndex columnCount
    Copies the values of a given matrix into a region in this matrix.
    ::tomato::mathmatrix
  • CopyTo
    CopyTo target storage
    Copies the elements of this matrix to the given matrix.
    ::tomato::mathmatrix
  • CreateIdentity
    CreateIdentity size
    Create a new identity matrix where each diagonal value is set to One.
    From package tcllib math::linearalgebra (Modify according to my needs).
    ::tomato::mathmatrix
  • CreateMappingCoordinateSystem
    CreateMappingCoordinateSystem fromCs toCs
    Creates a coordinate system that maps from the from coordinate system to the to coordinate system.
    ::tomato::mathcsys
  • Cross
    Cross v1 v2
    Compute the cross product of 2 vectors
    ::tomato::mathvec3d
  • CrossProduct
    VECTOR3DOBJ CrossProduct other
    Compute the cross product of this vector and another vector
    ::tomato::mathvec3d::Vector3d
  • CrossProductMatrix
    VECTOR3DOBJ CrossProductMatrix 
    A matrix containing the cross product of this vector
    ::tomato::mathvec3d::Vector3d
  • Csys ::tomato::mathcsys
  • D
    PLANEOBJ D 
    Gets the distance to the Plane along its normal from the origin
    ::tomato::mathplane::Plane
  • Decompose
    MATRIXOBJ Decompose 
    The combined lower-upper decomposition of matrix
    ::tomato::mathmatrix::Matrix
  • DegreesToRadians
    DegreesToRadians degrees
    Convert degrees to radians.
    ::tomato::helper
  • Determinant
    MATRIXOBJ Determinant 
    Gets the determinant of the matrix for which the Crout's LU decomposition was computed.
    ::tomato::mathmatrix::Matrix
  • Direction
    LINE3DOBJ Direction 
    Gets distance from StartPoint to EndPoint
    ::tomato::mathline3d::Line3d
  • Direction
    RAY3DOBJ Direction 
    Gets the direction mathvec3d::Vector3d of the ray
    ::tomato::mathray3d::Ray3d
  • Distance
    QUATERNIONOBJ Distance q
    Gets the distance |a-b| of two quaternions, forming a metric space.
    ::tomato::mathquat::Quaternion
  • DistanceTo
    POINT3DOBJ DistanceTo p
    Finds the straight line distance to another point
    ::tomato::mathpt3d::Point3d
  • Dot
    Dot q0 q1
    Dot Product between 2 quaternions
    ::tomato::mathquat
  • Dot
    Dot v1 v2
    Compute the dot product of 2 vectors
    ::tomato::mathvec3d
  • DotProduct
    VECTOR3DOBJ DotProduct other
    Compute the dot product of two vectors.
    ::tomato::mathvec3d::Vector3d
  • DoublePrecision
    DoublePrecision 
    Standard epsilon, the maximum relative precision of IEEE 754 double-precision floating numbers (64 bit). According to the definition of Prof. Demmel and used in LAPACK and Scilab.
    ::tomato::helper
  • EndPoint
    LINE3DOBJ EndPoint 
    Returns The end point of the line mathpt3d::Point3d.
    ::tomato::mathline3d::Line3d
  • Equals
    Equals triangle other tolerance
    Gets a value to indicate if a pair of triangles are equal
    ::tomato::mathtriangle
  • Equals
    Equals cs other tolerance
    Indicate if this coordinate system is equivalent to a another coordinate system
    ::tomato::mathcsys
  • Equals
    Equals quaternion other tolerance
    Indicate if this quaternion is equivalent to a given quaternion
    ::tomato::mathquat
  • Equals
    Equals line other tolerance
    Indicate if this line is equivalent to a given line
    ::tomato::mathline3d
  • Equals
    Equals ray other tolerance
    Indicate if this ray is equivalent to a given ray
    ::tomato::mathray3d
  • Equals
    Equals pt other tolerance
    Gets a value to indicate if a pair of points are equal
    ::tomato::mathpt3d
  • Equals
    Equals plane other tolerance
    Indicate if a pair of geometric planes are equal
    ::tomato::mathplane
  • Equals
    Equals vector other tolerance
    Indicate if this vector is equivalent to a given unit vector
    ::tomato::mathvec3d
  • Equals
    Equals mat other tolerance
    Indicate if this matrix is equivalent to a another matrix
    ::tomato::mathmatrix
  • Exp
    QUATERNIONOBJ Exp 
    Exponential Function.
    ::tomato::mathquat::Quaternion
  • FromPoints
    FromPoints p1 p2 p3 ?tolerance?
    Initializes a new instance of the Plane class. Creates a plane that contains the three given points.
    ::tomato::mathplane
  • Get
    QUATERNIONOBJ Get 
    Gets values from the Quaternion Class under Tcl list form.
    ::tomato::mathquat::Quaternion
  • Get
    LINE3DOBJ Get 
    Returns List of 2 elements : StartPoint + EndPoint
    ::tomato::mathline3d::Line3d
  • Get
    RAY3DOBJ Get 
    Gets the start point and direction of the ray in the form of a Tcl list
    ::tomato::mathray3d::Ray3d
  • Get
    POINT3DOBJ Get 
    Gets values from the Point3d Class under Tcl list form.
    ::tomato::mathpt3d::Point3d
  • Get
    VECTOR3DOBJ Get 
    Gets values from the Vector3D Class under Tcl list form.
    ::tomato::mathvec3d::Vector3d
  • GetCell
    MATRIXOBJ GetCell rowIndex colIndex
    Gets the cell value of base matrix
    ::tomato::mathmatrix::Matrix
  • GetColumn
    MATRIXOBJ GetColumn colIndex
    Gets Column of base matrix.
    ::tomato::mathmatrix::Matrix
  • GetRotationSubMatrix
    GetRotationSubMatrix coordinateSystem
    Gets a rotation submatrix from a coordinate system
    ::tomato::mathcsys
  • GetRow
    MATRIXOBJ GetRow rowIndex
    Get Row of base matrix.
    ::tomato::mathmatrix::Matrix
  • GetSize
    MATRIXOBJ GetSize 
    Returns the size of this object.
    ::tomato::mathmatrix::Matrix
  • GetType
    TRIANGLEOBJ GetType 
    Gets the name of class.
    ::tomato::mathtriangle::Triangle
  • GetType
    CSYSOBJ GetType 
    Gets the name of class.
    ::tomato::mathcsys::Csys
  • GetType
    QUATERNIONOBJ GetType 
    Gets the name of class.
    ::tomato::mathquat::Quaternion
  • GetType
    LINE3DOBJ GetType 
    Gets the name of class.
    ::tomato::mathline3d::Line3d
  • GetType
    RAY3DOBJ GetType 
    Gets the name of class.
    ::tomato::mathray3d::Ray3d
  • GetType
    POINT3DOBJ GetType 
    Gets the name of class.
    ::tomato::mathpt3d::Point3d
  • GetType
    PLANEOBJ GetType 
    Gets the name of class.
    ::tomato::mathplane::Plane
  • GetType
    VECTOR3DOBJ GetType 
    Gets the name of class.
    ::tomato::mathvec3d::Vector3d
  • GetType
    MATRIXOBJ GetType 
    Gets the name of class.
    ::tomato::mathmatrix::Matrix
  • GetUnitTensorProduct
    VECTOR3DOBJ GetUnitTensorProduct 
    A matrix with the unit tensor product
    [ux^2, ux*uy, ux*uz]
    [ux*uy, uy^2, uy*uz]
    [ux*uz, uy*uz, uz^2]
    ::tomato::mathvec3d::Vector3d
  • ImagX
    QUATERNIONOBJ ImagX 
    Gets the imaginary X part (coefficient of complex I) of the quaternion.
    ::tomato::mathquat::Quaternion
  • ImagY
    QUATERNIONOBJ ImagY 
    Gets the imaginary Y part (coefficient of complex J) of the quaternion.
    ::tomato::mathquat::Quaternion
  • ImagZ
    QUATERNIONOBJ ImagZ 
    Gets the imaginary Z part (coefficient of complex K) of the quaternion.
    ::tomato::mathquat::Quaternion
  • IntersectionOf3Planes
    IntersectionOf3Planes plane1 plane2 plane3
    Gets the point at which three planes intersect
    ::tomato::mathpt3d
  • IntersectionOfPlaneRay
    IntersectionOfPlaneRay plane ray
    Gets the point of intersection between a plane and a ray
    ::tomato::mathpt3d
  • IntersectionPlaneWithPlane
    IntersectionPlaneWithPlane plane1 plane2 ?tolerance?
    Gets the intersection of the two planes.
    ::tomato::mathray3d
  • IntersectionRayWithPlane
    IntersectionRayWithPlane ray plane ?tolerance?
    Gets the intersection of ray and plane.
    ::tomato::mathray3d
  • IntersectionWith
    TRIANGLEOBJ IntersectionWith obj ?tolerance?
    Finds the intersection... Möller–Trumbore_intersection_algorithm
    ::tomato::mathtriangle::Triangle
  • IntersectionWith
    LINE3DOBJ IntersectionWith intersectingPlane ?tolerance?
    Find the intersection between the line and a plane.
    ::tomato::mathline3d::Line3d
  • IntersectionWith
    PLANEOBJ IntersectionWith obj ?tolerance?
    Finds the intersection...
    ::tomato::mathplane::Plane
  • IntersectionWithLine
    IntersectionWithLine plane1 line tolerance
    Find intersection between Line3D and Plane http://geomalgorithms.com/a05-_intersect-1.html
    ::tomato::mathplane
  • IntersectionWithPlane
    IntersectionWithPlane plane1 plane2 tolerance
    Finds the intersection of the two planes, throws if they are parallel
    ::tomato::mathplane
  • IntersectionWithRay
    IntersectionWithRay plane1 ray tolerance
    Finds the intersection between a ray and plane, throws if ray is parallel to the plane http://geomalgorithms.com/a05-_intersect-1.html
    ::tomato::mathplane
  • Inverse
    MATRIXOBJ Inverse 
    Matrix inverse using Crout's LU decomposition
    ::tomato::mathmatrix::Matrix
  • Inversed
    QUATERNIONOBJ Inversed 
    Gets an inverted quaternion. Inversing Zero returns Zero
    ::tomato::mathquat::Quaternion
  • Invert
    CSYSOBJ Invert 
    Inverts this coordinate system
    ::tomato::mathcsys::Csys
  • IsaObject
    IsaObject obj
    Check if variable $obj is an object
    ::tomato::helper
  • IsCollinear
    RAY3DOBJ IsCollinear other ?tolerance?
    Returns a value to indicate if a pair of rays are collinear
    ::tomato::mathray3d::Ray3d
  • IsCollinearPoints
    IsCollinearPoints p1 p2 p3 ?tolerance?
    Check if three points are collinear
    ::tomato::mathpt3d
  • IsInfinity
    QUATERNIONOBJ IsInfinity 
    Gets a value indicating whether the quaternion is not a number
    ::tomato::mathquat::Quaternion
  • IsNan
    QUATERNIONOBJ IsNan 
    Gets a value indicating whether the quaternion is not a number
    ::tomato::mathquat::Quaternion
  • IsNormalized
    VECTOR3DOBJ IsNormalized ?tolerance?
    Check if vector is normalized.
    ::tomato::mathvec3d::Vector3d
  • IsOrthogonal
    MATRIXOBJ IsOrthogonal 
    Gets if matrix is orthogonal
    ::tomato::mathmatrix::Matrix
  • IsParallelTo
    LINE3DOBJ IsParallelTo other
    Checks to determine whether or not two lines are parallel to each other, using the Cross product within the double precision specified in the tomato::helper package
    ::tomato::mathline3d::Line3d
  • IsParallelTo
    VECTOR3DOBJ IsParallelTo other ?tolerance?
    Computes whether or not this vector is parallel to another vector using the Cross product method and comparing it to within a specified tolerance.
    ::tomato::mathvec3d::Vector3d
  • IsPerpendicularTo
    VECTOR3DOBJ IsPerpendicularTo other ?tolerance?
    Computes whether or not this vector is perpendicular to another vector using the dot product method and comparing it to within a specified tolerance
    ::tomato::mathvec3d::Vector3d
  • IsUnitQuaternion
    QUATERNIONOBJ IsUnitQuaternion 
    Gets a value indicating whether the quaternion q has length |q| = 1. To normalize a quaternion to a length of 1, use the Normalized method. All unit quaternions form a 3-sphere.
    ::tomato::mathquat::Quaternion
  • L2Norm
    L2Norm x y z ?exception?
    Check if the provided values are scaled to L2 norm
    ::tomato::helper
  • Length
    LINE3DOBJ Length 
    Gets distance from StartPoint and EndPoint, the length of the line.
    ::tomato::mathline3d::Line3d
  • Length
    VECTOR3DOBJ Length 
    Gets the Euclidean Norm.
    ::tomato::mathvec3d::Vector3d
  • LengthSquared
    VECTOR3DOBJ LengthSquared 
    Gets the length of the vector squared
    ::tomato::mathvec3d::Vector3d
  • Lerp
    Lerp v1 v2 blend
    Lerp a new Vector that is the linear blend of the 2 given Vectors.
    ::tomato::mathvec3d
  • Line3d ::tomato::mathline3d
  • LineTo
    LINE3DOBJ LineTo p mustStartBetweenStartAndEnd
    Gets the shortest line between this line and a point.
    ::tomato::mathline3d::Line3d
  • Log
    QUATERNIONOBJ Log ?lbase?
    Logarithm to a given base.
    ::tomato::mathquat::Quaternion
  • Log10
    QUATERNIONOBJ Log10 
    Common Logarithm to base 10.
    ::tomato::mathquat::Quaternion
  • MachineEpsilon
    MachineEpsilon 
    Actual double precision machine epsilon, the smallest number that can be subtracted from 1, yielding a results different than 1.
    This is also known as unit roundoff error. According to the definition of Prof. Demmel. On a standard machine this is equivalent to DoublePrecision.
    ::tomato::helper
  • MagnitudeMax
    MagnitudeMax left right
    A vector with the maximum magnitude.
    ::tomato::mathvec3d
  • MagnitudeMin
    MagnitudeMin left right
    A vector with the minimum magnitude
    ::tomato::mathvec3d
  • Matrix ::tomato::mathmatrix
  • MatrixDecompose
    MatrixDecompose storage
    Crout's LU decomposition for matrix determinant and inverse docs.microsoft.com
    ::tomato::mathmatrix
  • MatrixInverse
    MatrixInverse storage
    Crout's LU decomposition for matrix inverse.
    ::tomato::mathmatrix
  • MatrixMulByDouble
    MatrixMulByDouble mat other
    Multiply matrix by double value
    ::tomato::mathmatrix
  • MatrixMulColumnVector
    MatrixMulColumnVector mat other
    Multiply matrix by column vector.
    From package tcllib math::linearalgebra (Modify according to my needs).
    ::tomato::mathmatrix
  • MatrixMulMatrix
    MatrixMulMatrix mat other
    Multiply matrix by matrix.
    From package tcllib math::linearalgebra (Modify according to my needs).
    ::tomato::mathmatrix
  • MatrixMulVector
    MatrixMulVector mat other
    Multiply matrix by vector.
    From package tcllib math::linearalgebra (Modify according to my needs).
    ::tomato::mathmatrix
  • MidPoint
    MidPoint pt1 pt2
    Gets the midpoint of two points
    ::tomato::mathpt3d
  • MirrorAbout
    POINT3DOBJ MirrorAbout plane
    Gets the mirror point of this point across a plane
    ::tomato::mathpt3d::Point3d
  • MirrorAbout
    PLANEOBJ MirrorAbout point
    Gets point mirrored about the plane.
    ::tomato::mathplane::Plane
  • Multiply
    MATRIXOBJ Multiply entity
    Multiply matrix...
    ::tomato::mathmatrix::Matrix
  • Negate
    QUATERNIONOBJ Negate 
    Negate a quaternion.
    ::tomato::mathquat::Quaternion
  • Negate
    VECTOR3DOBJ Negate 
    Inverses the direction of the vector
    ::tomato::mathvec3d::Vector3d
  • Norm
    QUATERNIONOBJ Norm 
    Gets the norm of the quaternion q: square root of the sum of the squares of the four components.
    ::tomato::mathquat::Quaternion
  • Normal
    TRIANGLEOBJ Normal 
    Gets Normal of the triangle mathvec3d::Vector3d.
    ::tomato::mathtriangle::Triangle
  • Normal
    PLANEOBJ Normal 
    Gets the normal vector of the Plane
    ::tomato::mathplane::Plane
  • Normalize
    VECTOR3DOBJ Normalize 
    Transform self Vector to Normalize Vector.
    ::tomato::mathvec3d::Vector3d
  • Normalized
    QUATERNIONOBJ Normalized 
    Gets a new normalized Quaternion q with the direction of this quaternion.
    ::tomato::mathquat::Quaternion
  • Normalized
    VECTOR3DOBJ Normalized 
    Compute and return a copy unit vector from this vector
    ::tomato::mathvec3d::Vector3d
  • NormalizedVector
    QUATERNIONOBJ NormalizedVector 
    Gets a new normalized Quaternion u with the Vector part only, such that ||u|| = 1.
    ::tomato::mathquat::Quaternion
  • NormSquared
    QUATERNIONOBJ NormSquared 
    Gets the sum of the squares of the four components.
    ::tomato::mathquat::Quaternion
  • OffsetBy
    CSYSOBJ OffsetBy v
    Translates a coordinate system
    ::tomato::mathcsys::Csys
  • OffsetToBase
    CSYSOBJ OffsetToBase 
    Gets the offset to origin
    ::tomato::mathcsys::Csys
  • Origin
    CSYSOBJ Origin 
    Gets the Origin
    ::tomato::mathcsys::Csys
  • Origin
    POINT3DOBJ Origin 
    Gets a point at the origin
    ::tomato::mathpt3d::Point3d
  • Orthogonal
    VECTOR3DOBJ Orthogonal 
    Gets a unit vector orthogonal to this
    ::tomato::mathvec3d::Vector3d
  • Parse
    Parse ?args?
    Transform a list to coordinate system
    ::tomato::mathcsys
  • Perimeter
    TRIANGLEOBJ Perimeter 
    Gets Perimeter of the triangle.
    ::tomato::mathtriangle::Triangle
  • Pi
    Pi 
    Defines the value of Pi
    ::tomato::helper
  • Pitch
    Pitch av
    Rotates around Y
    ::tomato::mathcsys
  • Plane ::tomato::mathplane
  • Point3d ::tomato::mathpt3d
  • PointFromPlanes
    PointFromPlanes plane1 plane2 plane3
    Gets a point of intersection between three planes
    ::tomato::mathplane
  • Pow
    Pow q power
    Raise the quaternion to a given power.
    ::tomato::mathquat
  • Project
    PLANEOBJ Project obj ?direction?
    Project $obj on plane.
    ::tomato::mathplane::Plane
  • ProjectLine3dOnplane
    ProjectLine3dOnplane plane line direction
    Projects a point onto the plane
    ::tomato::mathplane
  • ProjectOn
    LINE3DOBJ ProjectOn plane
    Gets The line projected on a plane.
    ::tomato::mathline3d::Line3d
  • ProjectOn
    POINT3DOBJ ProjectOn plane
    Projects a point onto a plane
    ::tomato::mathpt3d::Point3d
  • ProjectOn
    VECTOR3DOBJ ProjectOn obj
    Projects the vector onto a plane if $obj is a plane The Dot product of the current vector and a unit vector if $obj is a vector.
    ::tomato::mathvec3d::Vector3d
  • ProjectPointOnplane
    ProjectPointOnplane plane point direction
    Projects a point onto the plane
    ::tomato::mathplane
  • ProjectVectorOnplane
    ProjectVectorOnplane plane vector direction
    Projects a point onto the plane
    ::tomato::mathplane
  • Quaternion ::tomato::mathquat
  • RadiansToDegrees
    RadiansToDegrees radians
    Convert radians to degrees.
    ::tomato::helper
  • Ray3d ::tomato::mathray3d
  • Real
    QUATERNIONOBJ Real 
    Gets the real part of the quaternion.
    ::tomato::mathquat::Quaternion
  • ResetRotations
    CSYSOBJ ResetRotations 
    Resets rotations preserves scales
    ::tomato::mathcsys::Csys
  • Roll
    Roll av
    Rotates around X
    ::tomato::mathcsys
  • RootPoint
    PLANEOBJ RootPoint 
    Gets the point on the plane closest to origin.
    ::tomato::mathplane::Plane
  • Rotate
    QUATERNIONOBJ Rotate obj
    Rotate a 3D vector or 3D point by the rotation stored in the Quaternion object
    ::tomato::mathquat::Quaternion
  • Rotate
    POINT3DOBJ Rotate aboutVector angle
    Rotates the point about a given vector
    ::tomato::mathpt3d::Point3d
  • Rotate
    PLANEOBJ Rotate aboutVector angle
    Rotates a plane
    ::tomato::mathplane::Plane
  • Rotate
    VECTOR3DOBJ Rotate aboutVector angle
    Gets a vector that is this vector rotated the signed angle around the about vector.
    ::tomato::mathvec3d::Vector3d
  • RotateCoordSysAroundVector
    CSYSOBJ RotateCoordSysAroundVector about angle
    Rotates a coordinate system around a vector
    ::tomato::mathcsys::Csys
  • RotateNoReset
    CSYSOBJ RotateNoReset yaw pitch roll
    Rotate without Reset
    ::tomato::mathcsys::Csys
  • RotateRotationQuaternion
    QUATERNIONOBJ RotateRotationQuaternion rotation
    Rotates the provided rotation quaternion with this quaternion.
    ::tomato::mathquat::Quaternion
  • RotateTo
    RotateTo fromVector3D toVector3D ?axis?
    Sets to the matrix of rotation that aligns the from vector with the to vector.
    The optional Axis argument may be used when the two vectors are perpendicular and in opposite directions
    to specify a specific solution, but is otherwise ignored.
    ::tomato::mathcsys
  • RotateUnitQuaternion
    QUATERNIONOBJ RotateUnitQuaternion unitQuaternion
    Rotates the provided unit quaternion with this quaternion.
    ::tomato::mathquat::Quaternion
  • RotationAngleVector
    RotationAngleVector angle v
    Creates a rotating coordinate system
    ::tomato::mathcsys
  • RotationAroundArbitraryVector
    RotationAroundArbitraryVector aboutVector angle
    Creates a rotation matrix around an arbitrary vector
    ::tomato::mathmatrix3d
  • RotationAroundXAxis
    RotationAroundXAxis angle
    Creates a rotation matrix around the X axis
    ::tomato::mathmatrix3d
  • RotationAroundYAxis
    RotationAroundYAxis angle
    Creates a rotation matrix around the Y axis
    ::tomato::mathmatrix3d
  • RotationAroundZAxis
    RotationAroundZAxis angle
    Creates a rotation matrix around the Z axis
    ::tomato::mathmatrix3d
  • RotationByAngles
    RotationByAngles yaw pitch roll
    Successive intrinsic rotations around Z (yaw) then around Y (pitch) and then around X (roll) Gives an order of magnitude speed improvement. https://en.wikipedia.org/wiki/Rotation_matrix#General_rotations
    ::tomato::mathcsys
  • RotationTo
    RotationTo fromVector toVector ?axis?
    Sets to the matrix of rotation that would align the from vector with the to vector. The optional Axis argument may be used when the two vectors are parallel and in opposite directions to specify a specific solution, but is otherwise ignored.
    ::tomato::mathmatrix3d
  • RowCount
    MATRIXOBJ RowCount 
    Gets the number of rows.
    ::tomato::mathmatrix::Matrix
  • Scalar
    QUATERNIONOBJ Scalar 
    Gets a new Quaternion q with the Scalar part only.
    ::tomato::mathquat::Quaternion
  • ScaleBy
    VECTOR3DOBJ ScaleBy scaleFactor
    Multiplies the current vector by a scalar
    ::tomato::mathvec3d::Vector3d
  • SetCell
    MATRIXOBJ SetCell rowIndex colIndex value
    Set the cell value of base matrix
    ::tomato::mathmatrix::Matrix
  • SetColumn
    MATRIXOBJ SetColumn colIndex columnlistvalues
    Set Column of base matrix.
    ::tomato::mathmatrix::Matrix
  • SetNewDataListMatrix
    SetNewDataListMatrix data
    Create a new base matrix Matrix based on a list
    ::tomato::mathmatrix
  • SetRotationSubMatrix
    SetRotationSubMatrix r coordinateSystem
    Creates a rotating coordinate system
    ::tomato::mathcsys
  • SetRow
    MATRIXOBJ SetRow rowIndex rowlistvalues
    Set Row of base matrix.
    ::tomato::mathmatrix::Matrix
  • SetSubMatrix
    MATRIXOBJ SetSubMatrix ?args?
    Copies the values of a given matrix into a region in this matrix.
    ::tomato::mathmatrix::Matrix
  • SetToAlignCoordinateSystems
    SetToAlignCoordinateSystems fromOrigin fromXAxis fromYAxis fromZAxis toOrigin toXAxis toYAxis toZAxis
    Sets this matrix to be the matrix that maps from the from coordinate system to the to coordinate system.
    ::tomato::mathcsys
  • SetTranslation
    CSYSOBJ SetTranslation v
    Gets a translation coordinate system
    ::tomato::mathcsys::Csys
  • ShortestLineTo
    RAY3DOBJ ShortestLineTo point3d
    the shortest line from a point to the ray
    ::tomato::mathray3d::Ray3d
  • SignedAngleTo
    VECTOR3DOBJ SignedAngleTo v about
    Gets signed angle.
    ::tomato::mathvec3d::Vector3d
  • SignedDistanceTo
    PLANEOBJ SignedDistanceTo obj
    Gets the signed distance
    ::tomato::mathplane::Plane
  • Slerp
    Slerp q0 q1 ?arcposition?
    Spherical Linear Interpolation between quaternions. Implemented as described in wiki/Slerp
    ::tomato::mathquat
  • Sqrt
    QUATERNIONOBJ Sqrt 
    Square root of the Quaternion: q^(1/2).
    ::tomato::mathquat::Quaternion
  • StartPoint
    LINE3DOBJ StartPoint 
    Returns The start point of the line mathpt3d::Point3d.
    ::tomato::mathline3d::Line3d
  • SubMatrix
    MATRIXOBJ SubMatrix rowIndex rowCount columnIndex columnCount
    Creates a matrix that contains the values from the requested sub-matrix.
    ::tomato::mathmatrix::Matrix
  • ThroughPoint
    RAY3DOBJ ThroughPoint 
    Gets the start point mathpt3d::Point3d of the ray
    ::tomato::mathray3d::Ray3d
  • ToCsys
    MATRIXOBJ ToCsys 
    Returns a csys from Matrix.
    ::tomato::mathmatrix::Matrix
  • ToMatrixString
    MATRIXOBJ ToMatrixString 
    Returns a string representation of this object.
    ::tomato::mathmatrix::Matrix
  • ToNormSquared
    ToNormSquared real imagX imagY imagZ
    Calculates norm of quaternion from it's algebraical notation
    ::tomato::mathquat
  • ToPlane
    TRIANGLEOBJ ToPlane 
    Convert triangle to plane object mathplane::Plane.
    ::tomato::mathtriangle::Triangle
  • ToPoint3D
    VECTOR3DOBJ ToPoint3D 
    A point equivalent to the vector
    ::tomato::mathvec3d::Vector3d
  • ToString
    CSYSOBJ ToString 
    Returns a string representation of this object.
    ::tomato::mathcsys::Csys
  • ToString
    QUATERNIONOBJ ToString 
    Returns a string representation of this object.
    ::tomato::mathquat::Quaternion
  • ToString
    LINE3DOBJ ToString 
    Returns a string representation of this object.
    ::tomato::mathline3d::Line3d
  • ToString
    RAY3DOBJ ToString 
    Returns a string representation of this object.
    ::tomato::mathray3d::Ray3d
  • ToString
    POINT3DOBJ ToString 
    Returns a string representation of this object.
    ::tomato::mathpt3d::Point3d
  • ToString
    PLANEOBJ ToString 
    Returns a string representation of this object.
    ::tomato::mathplane::Plane
  • ToString
    VECTOR3DOBJ ToString 
    Returns a string representation of this object.
    ::tomato::mathvec3d::Vector3d
  • ToUnitQuaternion
    ToUnitQuaternion real imagX imagY imagZ
    Creates unit quaternion (it's norm == 1) from it's algebraical notation
    ::tomato::mathquat
  • ToVector3D
    QUATERNIONOBJ ToVector3D 
    Gets the Vector part only.
    ::tomato::mathquat::Quaternion
  • ToVector3D
    POINT3DOBJ ToVector3D 
    Converts this point into a vector from the origin
    ::tomato::mathpt3d::Point3d
  • Transform
    CSYSOBJ Transform obj
    Transforms...
    ::tomato::mathcsys::Csys
  • TransformBy
    CSYSOBJ TransformBy obj
    Transforms...
    ::tomato::mathcsys::Csys
  • TransformBy
    POINT3DOBJ TransformBy cs
    Applies a transform coordinate system to the point
    ::tomato::mathpt3d::Point3d
  • TransformBy
    VECTOR3DOBJ TransformBy obj
    Transforms the vector by a coordinate system
    ::tomato::mathvec3d::Vector3d
  • TransformFromCoordSys
    CSYSOBJ TransformFromCoordSys obj
    Transforms obj according to the inverse of this change matrix
    ::tomato::mathcsys::Csys
  • TransformToCoordSys
    CSYSOBJ TransformToCoordSys obj
    Transforms obj according to this change matrix
    ::tomato::mathcsys::Csys
  • TranslateCsys
    CSYSOBJ TranslateCsys v d
    Translates a coordinate system follow vector and distance
    ::tomato::mathcsys::Csys
  • TranslatePoint
    POINT3DOBJ TranslatePoint v d
    Translates a Point along vector and distance
    ::tomato::mathpt3d::Point3d
  • Translation
    Translation translation
    Creates a translation.
    ::tomato::mathcsys
  • Transpose
    MATRIXOBJ Transpose 
    Transpose a matrix. mathematica Transpose
    ::tomato::mathmatrix::Matrix
  • Triangle ::tomato::mathtriangle
  • TypeClass
    TypeClass obj
    Name of class
    ::tomato::helper
  • TypeOf
    TypeOf obj Isa myclass
    Match type of class
    ::tomato::helper
  • UnitX
    UnitX 
    A unit length Vector X-axis
    ::tomato::mathvec3d
  • UnitY
    UnitY 
    A unit length Vector Y-axis
    ::tomato::mathvec3d
  • UnitZ
    UnitZ 
    A unit length Vector Z-axis
    ::tomato::mathvec3d
  • Values
    MATRIXOBJ Values 
    Gets the matrix's data.
    ::tomato::mathmatrix::Matrix
  • Vector
    QUATERNIONOBJ Vector 
    Gets a new Quaternion q with the Vector part only.
    ::tomato::mathquat::Quaternion
  • Vector3d ::tomato::mathvec3d
  • VectorTo
    POINT3DOBJ VectorTo p
    Gets a vector from this point to another point
    ::tomato::mathpt3d::Point3d
  • X
    POINT3DOBJ X 
    Gets The x component.
    ::tomato::mathpt3d::Point3d
  • X
    VECTOR3DOBJ X 
    Returns The x component.
    ::tomato::mathvec3d::Vector3d
  • XAxis
    CSYSOBJ XAxis 
    Gets the X Axis
    ::tomato::mathcsys::Csys
  • Y
    POINT3DOBJ Y 
    Gets The y component.
    ::tomato::mathpt3d::Point3d
  • Y
    VECTOR3DOBJ Y 
    Returns The y component.
    ::tomato::mathvec3d::Vector3d
  • Yaw
    Yaw av
    Rotates around Z
    ::tomato::mathcsys
  • YAxis
    CSYSOBJ YAxis 
    Gets the Y Axis
    ::tomato::mathcsys::Csys
  • Z
    POINT3DOBJ Z 
    Gets The z component.
    ::tomato::mathpt3d::Point3d
  • Z
    VECTOR3DOBJ Z 
    Returns The z component.
    ::tomato::mathvec3d::Vector3d
  • ZAxis
    CSYSOBJ ZAxis 
    Gets the Z Axis
    ::tomato::mathcsys::Csys