API Reference > geometry-core > CartesianGeometry > Matrix3d > createViewedAxes createViewedAxes MethodStatic Create a matrix from "as viewed" right and up vectors. 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): undefined | Matrix3d 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 | Matrix3d undefined if columnX, columnY are coplanar. Defined in geometry3d/Matrix3d.ts Line 657 Last Updated: 12 June, 2024