createViewedAxes MethodStatic

Create a matrix with

  • ColumnX points in the rightVector direction
  • ColumnY points in in the upVectorDirection
  • ColumnZ is a unit cross product. Optionally rotate the standard cube by 45 to bring its left or right vertical edge to center
  • leftNoneRight = [-1,0,1] respectively for left edge, no rotation, or right edge
  • bottomNoneTop = [-1,0,1] respectively for isometric rotation to view the bottom, no isometric rotation, and isometric rotation to view the top This is expected to be used with various principal unit vectors that are perpendicular to each other.
    • STANDARD TOP VIEW: (Vector3d.UnitX (), Vector3d.UnitY (), 0, 0)
    • STANDARD FRONT VIEW: (Vector3d.UnitX (), Vector3d.UnitZ (), 0, 0)
    • STANDARD BACK VIEW: (Vector3d.UnitX (-1), Vector3d.UnitZ (), 0, 0)
    • STANDARD RIGHT VIEW: (Vector3d.UnitY (1), Vector3d.UnitZ (), 0, 0)
    • STANDARD LEFT VIEW: (Vector3d.UnitY (-1), Vector3d.UnitZ (), 0, 0)
    • STANDARD BOTTOM VIEW: (Vector3d.UnitX (1), Vector3d.UnitY (-1), 0, 0)

createViewedAxes(rightVector: Vector3d, upVector: Vector3d, leftNoneRight: number = 0, topNoneBottom: number = 0): Matrix3d | undefined

Parameter Type Description
rightVector Vector3d  
upVector Vector3d  
leftNoneRight number Normally one of {-1,0,1}, where (-1) indicates the left vertical is rotated to center and (1) for right. Other numbers are used as multiplier for this 45 degree rotation
topNoneBottom number  

Returns - undefined if columnX, columnY are coplanar.

Defined in

Last Updated: 08 January, 2020