Docs.rs
  • rust-pathtracer-0.1.2
    • rust-pathtracer 0.1.2
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • markusmoenig
    • Dependencies
      • nalgebra ^0.32.1 normal
      • nalgebra-glm ^0.18.0 normal
      • rand ^0.8.5 normal
      • rayon ^1.5.3 normal
    • Versions
    • 22.69% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

UnitComplex

In rust_pathtracer::prelude

?
Change settings

Type Definition rust_pathtracer::prelude::UnitComplex

source ·
pub type UnitComplex<T> = Unit<Complex<T>>;
Expand description

A 2D rotation represented as a complex number with magnitude 1.

All the methods specific UnitComplex are listed here. You may also read the documentation of the Complex type which is used internally and accessible with unit_complex.complex().

Construction

  • Identity identity
  • From a 2D rotation angle new, from_cos_sin_unchecked…
  • From an existing 2D matrix or complex number from_matrix, rotation_to, powf…
  • From two vectors rotation_between, scaled_rotation_between_axis…

Transformation and composition

  • Angle extraction angle, angle_to…
  • Transformation of a vector or a point transform_vector, inverse_transform_point…
  • Conjugation and inversion conjugate, inverse_mut…
  • Interpolation slerp…

Conversion

  • Conversion to a matrix to_rotation_matrix, to_homogeneous…