亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? geometry.h

?? 機器人足球AI設計比賽
?? H
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************************** *                                      SEU-3D *                     ------------------------------------------------- * Copyright (c) 2005, Yuan XU<xychn15@yahoo.com.cn>,Chang'e SHI<evelinesce@yahoo.com.cn> * Copyright (c) 2006, Yuan XU<xuyuan.cn@gmail.com>,Chunlu JIANG<JamAceWatermelon@gmail.com> * Southeast University ,China * All rights reserved. * * Additionally,this program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ****************************************************************************************/ #ifndef _GEOMETRY_H#define _GEOMETRY_H#ifdef __cplusplusextern "C"{#endif#ifdef __cplusplus}#endif#include <algorithm>#include "math.h"       // needed for M_PI constant#include <string>#include <map>#include <soccer/soccertypes.h>#include "Settings.h"#include <deque>using namespace std;using namespace salt;#define EPSILON 0.0001  // Value used for floating point equality tests. // auxiliary numeric functions for determining the// the sign of a value/*! This function returns the sign of a give value.    1 is positive, -1 is negative    \param d1 first parameter    \return the sign of this value */template < class Type >int sign( Type d1 ){  return (d1>0)?1:-1;}//-* random value in (min,max)template < class Type >Type random( Type min, Type max ){	//if ( min > max ) swap(min,max);//no need :)	srand(time(0));	return (Type(rand())/RAND_MAX)*(max-min)+min;}// auxiliary goniometric functions which enable you to// specify angles in degrees rather than in radiansAngDeg Rad2Deg ( AngRad x );AngRad Deg2Rad ( AngDeg x );float cosDeg  ( AngDeg x );float sinDeg  ( AngDeg x );float tanDeg  ( AngDeg x );AngDeg atanDeg ( float x );AngDeg atan2Deg ( float y, float x );AngDeg acosDeg ( float x );AngDeg asinDeg ( float x );//-* various goniometric functionsbool   isAngInInterval     ( AngDeg ang, AngDeg angMin, AngDeg angMax );AngDeg getBisectorTwoAngles( AngDeg angMin, AngDeg angMax );/////////////////// normalize ///////////////////AngDeg normalizeAngle( AngDeg angle );Vector3f normalizeVector3f( const Vector3f &v, const float maxLength );Vector3f normalizeDriveForce( Vector3f driveForce );float normalizeKickForce( float kickForce );AngDeg normalizeKickAngle( AngDeg kickAngle );struct VisionSense{    /** distance perceptor to object */    float distance;	/** theta is the angle in the X-Y (horizontal) plane */	AngDeg theta;	/** phi is the latitude angle */	AngDeg phi;		//VisionSense() : distance(0), theta(0), phi(0) {};	VisionSense() : distance(1000.0), theta(0), phi(0) {};	VisionSense( const float &d, const AngDeg &t, const AngDeg &p): distance(d), theta(t), phi(p) {};};//the vision is relative pos in formate POLAR//the posRelative is relative pos in formate CARTESIAN(X-Y-Z)Vector3f getPosRelativeFromVision( VisionSense vision );VisionSense getPosVisionFromRelative( const Vector3f &posRelative );typedef VisionSense Polar;#define pol2xyz getPosRelativeFromVision#define xyz2pol getPosVisionFromRelative//-* some function about Vector3fVector3f setVector3fLength(Vector3f v,float length);AngDeg	 getClipAng(const Vector3f &v1, const Vector3f &v2);AngDeg	 getClipAng(const Vector3f &p0, const Vector3f &p1, const Vector3f &p2);bool	 isThreePointOneLine( Vector3f p1, Vector3f p2, Vector3f p3 , AngDeg angThr = 1.8 );AngDeg	 getVector3fHorizontalAng( Vector3f v );float	 getDistToLine( Vector3f p, Vector3f l1, Vector3f l2 );//////////////////// template ///////////////////////////////template < class Type >	Type setMaxNMin( const Type x, const Type max, const Type min ){	if ( x > max ) return max;	if ( x < min ) return min;	return x;}/** set the value to range [min,max] *  @param[in] x the orginal value *  @param[in] min the range left *  @param[in] max the range right *  @return the value be clamped */template < class T >T clamp( T x, T min, T max ){	if ( x > max ) return max;	if ( x < min ) return min;	return x;}template < class Type>	Type pow2( const Type x ){	return x*x;}///////////////////////////////////////////////////////////////////////////////////////// deque operation template///////////////////////////////////////////////////////////////////////////////////////template < class Type >	Type getDequeValue( deque< Type > q, unsigned int i ){	if ( q.size() == 0 )		return Type();		return q[ min( i, q.size()-1 ) ];}template < class Type >	void pushDequeValue( deque< Type > &q, Type value, const unsigned int maxSize ){	//-* push the value to the front	q.push_front( value );	//-* keep the size of the deque	while( q.size() > maxSize )		q.pop_back();}template < class Type >	Type getDequeValueByTime( deque< Time > timeDeque, Time time, deque< Type > q ){	deque< Time >::iterator iter = find( timeDeque.begin(), timeDeque.end(), time );	if ( iter == timeDeque.end() )		return Type();		unsigned int i = iter - timeDeque.begin();	return getDequeValue( q, i );}/////////////////// some function of time ////////////////////Second Time2Second( const Time &t);Time Second2Time( const Second &t);Step Time2Step( const Time &t);Step Second2Step( const Second &t);Time Step2Time ( const Step &t);Second Step2Second( const Step &t);// this function convert Vector3f to Vector2f,just skip z dimVector2f projection(const Vector3f &pos3 );// this function convert Vector2f to Vector3f,let z = 0Vector3f projection(const Vector2f &pos2 );/***************************************************************//******************** CLASS RECTANGLE **************************//***************************************************************/class Rectangle{public:    f_inline                Rectangle() { }    f_inline                Rectangle(const Rectangle &inOther) : _Left(inOther.Left()), _Top(inOther.Top()), _Right(inOther.Right()), _Bottom(inOther.Bottom()) { }     f_inline                Rectangle(float inLeft, float inTop, float inRight, float inBottom)  : _Left(inLeft), _Top(inTop), _Right(inRight), _Bottom(inBottom) { }     f_inline void   Set(float inLeft, float inTop, float inRight, float inBottom)   { _Left=inLeft; _Top=inTop; _Right=inRight; _Bottom=inBottom; }     // member access    f_inline float    Left() const                    { return _Left; }    f_inline float    Right() const                   { return _Right; }    f_inline float    Top() const                     { return _Top; }    f_inline float    Bottom() const                  { return _Bottom; }    f_inline float    Width() const                   { return _Right-_Left; }    f_inline float    Height() const                  { return _Bottom-_Top; }    f_inline void   Normalize()                                                                             { if (_Right < _Left) gSwap(_Left, _Right); if (_Bottom < _Top) gSwap(_Top, _Bottom); }    f_inline void   Widen(float inDelta)                                                              { _Left-=inDelta; _Top-=inDelta; _Right+=inDelta; _Bottom+=inDelta;     }    f_inline void   Widen(float inDeltaWidth, float inDeltaHeight)              { _Right+=inDeltaWidth; _Bottom+=inDeltaHeight; }    f_inline void   Widen(float inDeltaLeft, float inDeltaTop, float inDeltaRight, float inDeltaBottom)     { _Left-=inDeltaLeft; _Top-=inDeltaTop; _Right+=inDeltaRight; _Bottom+=inDeltaBottom;           }    f_inline void   Shrink(float inDelta)                                                             { _Left+=inDelta;       _Top+=inDelta;  _Right-=inDelta; _Bottom-=inDelta;      }    f_inline void   Shrink(float inDeltaWidth, float inDeltaHeight)             { _Right-=inDeltaWidth; _Bottom-=inDeltaHeight; }    f_inline void   Shrink(float inDeltaLeft, float inDeltaTop, float inDeltaRight, float inDeltaBottom) { _Left+=inDeltaLeft; _Top+=inDeltaTop; _Right-=inDeltaRight; _Bottom-=inDeltaBottom;              }    f_inline void   Offset(float inDeltaX, float inDeltaY)                              { _Left+=inDeltaX;      _Top+=inDeltaY; _Right+=inDeltaX;       _Bottom+=inDeltaY; }    f_inline bool   Intersects(const Rectangle &b) const                                 { return !(_Left > b._Right || _Right < b._Left || _Top > b._Bottom || _Bottom < b._Top); }	     // assignment    f_inline Rectangle& operator=(const Rectangle &inOther)  { _Left=inOther.Left(); _Top=inOther.Top();     _Right=inOther.Right(); _Bottom=inOther.Bottom(); return *this; }     // comparison    f_inline bool operator==(const Rectangle &inRHS) const  { return (_Left==inRHS.Left()) && (_Top==inRHS.Top()) && (_Right==inRHS.Right()) && (_Bottom==inRHS.Bottom()); }    f_inline bool operator!=(const Rectangle &inRHS) const  { return (_Left!=inRHS.Left()) || (_Top!=inRHS.Top()) || (_Right!=inRHS.Right()) || (_Bottom!=inRHS.Bottom()); }	f_inline bool operator[](const Vector3f &p) const { return ( p.x()<_Right && p.x()>_Left && p.y()<_Top && p.y()>_Bottom); }		private:     float _Left;     float _Top;     float _Right;     float _Bottom;};/***************************************************************//******************** CLASS SECTOR *****************************//***************************************************************/class Sector

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区不卡| 欧美精三区欧美精三区| 日韩电影在线看| 国产亚洲女人久久久久毛片| 欧美偷拍一区二区| 国产成人精品免费在线| 日韩精品一级中文字幕精品视频免费观看 | 美女免费视频一区| 一区二区三区四区在线免费观看| 精品国产一区二区三区四区四| 色诱视频网站一区| 高清不卡在线观看| 麻豆精品一区二区三区| 亚洲影院免费观看| 一色屋精品亚洲香蕉网站| 精品久久久久香蕉网| 欧美日韩成人综合| 91在线丨porny丨国产| 国产老妇另类xxxxx| 91香蕉视频污| 国产精品正在播放| 久久www免费人成看片高清| 午夜成人免费电影| 亚洲愉拍自拍另类高清精品| 自拍av一区二区三区| 国产精品午夜电影| 久久精品亚洲精品国产欧美| 精品久久久久久久久久久久久久久 | 久久久电影一区二区三区| 91精品国产乱| 欧美乱妇20p| 欧美人伦禁忌dvd放荡欲情| 在线这里只有精品| 91视频免费播放| 91免费观看在线| 99在线精品观看| 91视视频在线直接观看在线看网页在线看 | 亚洲五月六月丁香激情| 综合自拍亚洲综合图不卡区| 国产精品伦理一区二区| 国产清纯在线一区二区www| 国产欧美一区二区三区鸳鸯浴| 欧美精品一区二区三区视频| 久久综合久久综合久久综合| 精品国产乱码久久久久久久| 久久久久久久久一| 国产日韩欧美亚洲| 国产精品久久久一本精品| 中文字幕日韩欧美一区二区三区| 亚洲欧美一区二区久久| 亚洲免费色视频| 亚洲国产一区二区三区| 天堂成人国产精品一区| 久久国产麻豆精品| 国产乱码精品一区二区三| 懂色av一区二区在线播放| 成人h动漫精品一区二| 色爱区综合激月婷婷| 欧美日韩国产区一| 精品福利一区二区三区| 国产精品欧美极品| 亚洲黄色性网站| 秋霞av亚洲一区二区三| 国产一区二区久久| 91一区二区在线| 欧美肥胖老妇做爰| 久久天堂av综合合色蜜桃网| 图片区小说区区亚洲影院| 日韩不卡手机在线v区| 国产伦精品一区二区三区免费迷| 国产精品亚洲专一区二区三区| www.久久久久久久久| 日本丶国产丶欧美色综合| 日韩午夜在线影院| 国产精品久久久久一区| 亚洲电影视频在线| 国产高清不卡二三区| 91免费精品国自产拍在线不卡| 在线不卡一区二区| 国产三级一区二区三区| 亚洲一区二区不卡免费| 韩国一区二区视频| 欧美亚洲愉拍一区二区| 337p粉嫩大胆色噜噜噜噜亚洲| 中文字幕综合网| 精品在线你懂的| 欧美中文字幕一区| 2017欧美狠狠色| 亚洲观看高清完整版在线观看| 国产乱子伦视频一区二区三区| 91浏览器在线视频| 久久久久久电影| 亚洲影院久久精品| 成人免费视频网站在线观看| 69久久99精品久久久久婷婷| 国产精品免费网站在线观看| 奇米综合一区二区三区精品视频| 91片在线免费观看| 久久网站热最新地址| 日韩成人伦理电影在线观看| 91视频一区二区| 国产婷婷色一区二区三区四区 | 成人夜色视频网站在线观看| 91精品国产综合久久久蜜臀粉嫩 | 国产不卡在线播放| 欧美美女直播网站| 亚洲靠逼com| 成人性视频网站| 久久色中文字幕| 日韩电影免费一区| 欧洲一区在线电影| 成人欧美一区二区三区小说| 久久不见久久见免费视频1| 欧美日韩在线观看一区二区| 国产精品福利一区| 处破女av一区二区| 久久精品男人天堂av| 久久 天天综合| 欧美一区二区视频在线观看2022 | 精品盗摄一区二区三区| 日韩中文字幕1| 欧美日本在线播放| 性欧美疯狂xxxxbbbb| 在线观看成人免费视频| 亚洲伦理在线免费看| 北岛玲一区二区三区四区 | 丝袜美腿亚洲一区| 欧美亚洲国产一区在线观看网站| 国产精品九色蝌蚪自拍| 成+人+亚洲+综合天堂| 国产精品免费视频观看| 国产成人小视频| 国产欧美一区视频| 激情综合一区二区三区| 26uuu色噜噜精品一区二区| 久久国产综合精品| 欧美精品一区二区在线播放| 国产在线一区二区| 26uuu久久天堂性欧美| 国产综合久久久久久久久久久久| www国产成人| 成熟亚洲日本毛茸茸凸凹| 国产精品天干天干在观线| 成人av网站在线| 亚洲欧洲成人自拍| 欧美日韩综合一区| 日本亚洲免费观看| 欧美精品一区二区不卡| 粉嫩aⅴ一区二区三区四区 | 日韩欧美一级片| 久久不见久久见免费视频7| 久久蜜桃一区二区| 成人av午夜影院| 亚洲综合av网| 亚洲美女区一区| 欧美日韩国产一级| 激情综合网av| 国产精品国产自产拍在线| 91婷婷韩国欧美一区二区| 亚洲综合精品久久| 欧美一区二区三区思思人| 国产精品自产自拍| 亚洲精品国产a| 5566中文字幕一区二区电影| 狠狠狠色丁香婷婷综合激情| 国产精品高潮呻吟| 欧美肥妇bbw| 国产91精品入口| 一二三区精品视频| 久久综合久久综合久久综合| a4yy欧美一区二区三区| 日韩精品1区2区3区| 久久久久99精品一区| 色噜噜久久综合| 久久9热精品视频| 亚洲欧洲av色图| 日韩女优制服丝袜电影| 99久久综合狠狠综合久久| 亚洲va天堂va国产va久| 久久久www成人免费无遮挡大片| 99re视频这里只有精品| 免费欧美日韩国产三级电影| 国产精品青草久久| 欧美精品乱码久久久久久按摩 | 全国精品久久少妇| 亚洲欧洲性图库| 欧美成va人片在线观看| 91视频一区二区三区| 国产综合久久久久久鬼色| 亚洲一区日韩精品中文字幕| 久久久久久久性| 7777精品久久久大香线蕉| 成人美女在线观看| 麻豆91精品视频| 亚洲一区二区精品视频| 欧美国产成人精品| 日韩欧美一二三四区| 色吊一区二区三区| 不卡的av电影在线观看| 国产曰批免费观看久久久|