Panda3D
Functions
pointerEventList.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "pointerEventList.h"
#include "indent.h"
#include "config_event.h"
#include "clockObject.h"
#include "deg_2_rad.h"
#include "cmath.h"

Go to the source code of this file.

Functions

double delta_angle (double angle1, double angle2)
 Compute the difference between two angles. More...
 
double normalize_angle (double angle)
 Compute the difference between two angles. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
jyelon
Date
2007-09-20

Definition in file pointerEventList.cxx.

Function Documentation

◆ delta_angle()

double delta_angle ( double  angle1,
double  angle2 
)
inline

Compute the difference between two angles.

Returns a value in the range -180 to 180.

Definition at line 27 of file pointerEventList.cxx.

◆ normalize_angle()

double normalize_angle ( double  angle)
inline

Compute the difference between two angles.

Returns a value in the range -180 to 180.

Definition at line 39 of file pointerEventList.cxx.