Panda3D
Loading...
Searching...
No Matches
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.
 
double normalize_angle (double angle)
 Compute the difference between two angles.
 

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.

Referenced by PointerEventList::add_event(), PointerEventList::add_event(), PointerEventList::add_event(), and PointerEventList::encircles().

◆ 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.

Referenced by PointerEventList::add_event(), PointerEventList::add_event(), PointerEventList::add_event(), and PointerEventList::match_pattern().