navigate Logo

Getting Started

  • Quick Start Guide
  • Software Installation
  • I Want To…

User Guide

  • Supported Hardware
  • Supported File Formats
  • User Interface Walkthrough
  • Setting Up A Microscope
  • Acquiring Data
  • Case Studies

Development

  • Contributing Guidelines
  • Developer Install
  • Software Architecture
  • Feature Container
  • REST-API
  • Plugin Architecture

Troubleshooting & Known Issues

  • Troubleshooting
  • Known Issues

Plugins

  • navigate Plugin Template
  • navigate Confocal Projection
  • navigate at Scale
  • navigate Constant Velocity Acquisition
  • navigate MMCore
  • navigate ilastik Server
  • navigate Photoactivation

Reference

  • Implemented Microscopes
  • Software API
    • navigate.config
    • navigate.controller
    • navigate.log_files
    • navigate.model
    • navigate.tools
      • navigate.tools.common_dict_tools
      • navigate.tools.common_functions
      • navigate.tools.decorators
      • navigate.tools.file_functions
      • navigate.tools.image
      • navigate.tools.linear_algebra
        • navigate.tools.linear_algebra.affine_rotation
        • navigate.tools.linear_algebra.affine_shear
      • navigate.tools.main_functions
      • navigate.tools.multipos_table_tools
      • navigate.tools.sdf
      • navigate.tools.slicing
      • navigate.tools.waveform_template_funcs
      • navigate.tools.xml_tools
    • navigate.view
navigate
  • Software API
  • navigate.tools
  • navigate.tools.linear_algebra
  • navigate.tools.linear_algebra.affine_rotation
  • View page source

navigate.tools.linear_algebra.affine_rotation

navigate.tools.linear_algebra.affine_rotation(x=0, y=0, z=0)

Calculate the general 3D affine transform for rotation.

Returns a rotation matrix for a rotation about the x, y, and z axes.

Rotation about x: [1, 0, 0, 0, 0, cos(theta), -sin(theta), 0, 0, sin(theta), cos(theta), 0, 0, 0, 0, 1]

Rotation about Y: [cos(theta), 0, sin(theta), 0, 0, 1, 0, 0, -sin(theta), 0, cos(theta), 0, 0, 0, 0, 1]

Rotation about Z: [cos(theta), -sin(theta), 0, 0, sin(theta), cos(theta), 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]

Parameters:
  • x (float) – Rotation about the x axis in degrees.

  • y (float) – Rotation about the y axis in degrees.

  • z (float) – Rotation about the z axis in degrees.

Returns:

affine_transform – A 4x4 affine transformation matrix.

Return type:

numpy.ndarray

Previous Next

© Copyright 2025, Dean Lab, UT Southwestern Medical Center.