gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
Camera.cpp File Reference
#include <string>
#include <iostream>
#include <stdio.h>
#include <cmath>
#include <algorithm>
#include "Camera.h"
#include "GmshGlobal.h"
#include "GmshConfig.h"
#include "GmshMessage.h"
#include "Trackball.h"
#include "Context.h"
#include "drawContext.h"
Include dependency graph for Camera.cpp:

Go to the source code of this file.

Functions

double length (Quaternion &q)
 
double length (XYZ &p)
 
void normalize_axe (Quaternion &q)
 
void normalize (Quaternion &q)
 
void normalize (XYZ &p)
 
void rotate (const Quaternion &omega, XYZ axe)
 
XYZ operator* (const double &a, const XYZ &T)
 
XYZ operator+ (const XYZ &L, const XYZ &R)
 
XYZ operator- (const XYZ &L, const XYZ &R)
 
XYZ operator- (const XYZ &R)
 
Quaternion mult (const Quaternion &A, const Quaternion &B)
 
Quaternion operator* (const Quaternion &A, const Quaternion &B)
 
Quaternion conjugate (Quaternion quat)
 

Function Documentation

◆ conjugate()

Quaternion conjugate ( Quaternion  quat)

Definition at line 474 of file Camera.cpp.

Referenced by Camera::move_and_look(), rotate(), and Camera::rotate().

Here is the caller graph for this function:

◆ length() [1/2]

◆ length() [2/2]

double length ( XYZ p)

Definition at line 351 of file Camera.cpp.

◆ mult()

◆ normalize() [1/2]

void normalize ( Quaternion q)

Definition at line 370 of file Camera.cpp.

Referenced by discreteFace::_computeSTLNormals(), addExtrudeNormals(), Camera::move_and_look(), Camera::rotate(), and Camera::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ normalize() [2/2]

void normalize ( XYZ p)

Definition at line 379 of file Camera.cpp.

Here is the call graph for this function:

◆ normalize_axe()

void normalize_axe ( Quaternion q)

Definition at line 353 of file Camera.cpp.

◆ operator*() [1/2]

XYZ operator* ( const double &  a,
const XYZ T 
)

Definition at line 412 of file Camera.cpp.

◆ operator*() [2/2]

Quaternion operator* ( const Quaternion A,
const Quaternion B 
)

Definition at line 469 of file Camera.cpp.

Here is the call graph for this function:

◆ operator+()

XYZ operator+ ( const XYZ L,
const XYZ R 
)

Definition at line 421 of file Camera.cpp.

◆ operator-() [1/2]

XYZ operator- ( const XYZ L,
const XYZ R 
)

Definition at line 429 of file Camera.cpp.

◆ operator-() [2/2]

XYZ operator- ( const XYZ R)

Definition at line 437 of file Camera.cpp.

◆ rotate()

void rotate ( const Quaternion omega,
XYZ  axe 
)

Definition at line 398 of file Camera.cpp.

Here is the call graph for this function: