Ejemplo n.º 1
0
float tiAngle(float x1, float y1, float x2, float y2) {
    float dx = x2 - x1;
    float dy = y2 - y1;
    return tiAngle(dx, dy);
}
Ejemplo n.º 2
0
void MotionTracker::getVelAverageAngleMag(float *angle, float *magnitude, ofRectangle* bounds){
	float u, v;
	this->getVelAverageComponents(&u, &v, bounds);
	*angle = tiRadiansToAngle(tiAngle(u, v));
	*magnitude = tiDistance(u, v);
}