Zephyr Scientific Library (zscilib)
Data Fields
zsl_quat Struct Reference

Represents a quaternion, a 4D structure capable of representing 3D rigid body orientations. More...

#include <quaternions.h>

Data Fields

union {
   struct {
      zsl_real_t   r
 The real component. More...
 
      zsl_real_t   i
 The first imaginary component. More...
 
      zsl_real_t   j
 The second imaginary component. More...
 
      zsl_real_t   k
 The third imaginary component. More...
 
   } 
 
   struct {
      zsl_real_t   w
 The scalar component. More...
 
      zsl_real_t   x
 The first vector component. More...
 
      zsl_real_t   y
 The second vector component. More...
 
      zsl_real_t   z
 The third vector component. More...
 
   }   alias
 
   zsl_real_t   idx [4]
 Allows access as an array. More...
 
}; 
 

Detailed Description

Represents a quaternion, a 4D structure capable of representing 3D rigid body orientations.

Definition at line 89 of file quaternions.h.

Field Documentation

◆ @29

union { ... }

◆ alias

struct { ... } zsl_quat::alias

◆ i

zsl_real_t zsl_quat::i

The first imaginary component.

Definition at line 93 of file quaternions.h.

◆ idx

zsl_real_t zsl_quat::idx[4]

Allows access as an array.

Definition at line 103 of file quaternions.h.

◆ j

zsl_real_t zsl_quat::j

The second imaginary component.

Definition at line 94 of file quaternions.h.

◆ k

zsl_real_t zsl_quat::k

The third imaginary component.

Definition at line 95 of file quaternions.h.

◆ r

zsl_real_t zsl_quat::r

The real component.

Definition at line 92 of file quaternions.h.

◆ w

zsl_real_t zsl_quat::w

The scalar component.

Definition at line 98 of file quaternions.h.

◆ x

zsl_real_t zsl_quat::x

The first vector component.

Definition at line 99 of file quaternions.h.

◆ y

zsl_real_t zsl_quat::y

The second vector component.

Definition at line 100 of file quaternions.h.

◆ z

zsl_real_t zsl_quat::z

The third vector component.

Definition at line 101 of file quaternions.h.


The documentation for this struct was generated from the following file: