亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
美国毛片一区二区三区| 一区二区三区高清| 国产激情一区二区三区| 亚洲精品在线三区| 成人午夜在线视频| 亚洲三级电影网站| 精品视频在线视频| 精品一区二区三区在线播放| 久久嫩草精品久久久精品一| 国产高清久久久久| 日韩毛片精品高清免费| 欧美男生操女生| 国内精品视频666| 中文字幕在线一区| 欧美女孩性生活视频| 久久99九九99精品| 亚洲欧洲日韩av| 欧美性大战久久久久久久蜜臀| 男女视频一区二区| 国产色产综合产在线视频| 91看片淫黄大片一级在线观看| 午夜亚洲国产au精品一区二区| 久久香蕉国产线看观看99| 91免费视频网址| 奇米精品一区二区三区四区| 久久久影视传媒| 成人国产电影网| 99在线精品观看| 日本特黄久久久高潮| 国产欧美一区二区三区在线老狼| 成人精品鲁一区一区二区| 午夜精品免费在线观看| 久久久久久久久免费| 91精品福利视频| 国产麻豆9l精品三级站| 亚洲欧美日韩国产一区二区三区| 日韩午夜电影在线观看| 成人动漫一区二区| 久久福利资源站| 亚洲图片欧美视频| 欧美激情一区二区三区不卡 | 一区精品在线播放| 56国语精品自产拍在线观看| 国v精品久久久网| 美女免费视频一区| 一区二区三区免费网站| 国产日产精品一区| 欧美一区二区三区公司| 一本一道波多野结衣一区二区| 精品一区二区三区不卡| 亚洲成va人在线观看| 亚洲特黄一级片| 国产人久久人人人人爽| 日韩久久精品一区| 精品视频在线视频| 日本韩国精品一区二区在线观看| 国产盗摄精品一区二区三区在线| 亚洲成人动漫精品| 夜夜嗨av一区二区三区中文字幕| 国产精品伦理在线| 国产三级精品三级在线专区| 欧美xxxxxxxx| 日韩一卡二卡三卡四卡| 欧美日韩一区三区四区| 在线亚洲+欧美+日本专区| 大白屁股一区二区视频| 国产成人在线网站| 国产一区二区美女诱惑| 国产一区在线看| 国产综合久久久久影院| 美腿丝袜一区二区三区| 蜜臀久久久久久久| 免费在线看一区| 麻豆专区一区二区三区四区五区| 亚洲aⅴ怡春院| 午夜精品福利一区二区蜜股av| 伊人开心综合网| 亚洲自拍欧美精品| 亚洲成人中文在线| 日韩黄色一级片| 捆绑变态av一区二区三区| 麻豆精品在线视频| 国模少妇一区二区三区| 国产精品99久久久久久宅男| 国产麻豆一精品一av一免费| 精品一区二区在线视频| 国产一区二区三区av电影| 国产成人免费视频| 99精品一区二区| 在线观看日韩av先锋影音电影院| 欧美日韩一区视频| 欧美成人精精品一区二区频| 久久亚洲综合色| 中文字幕av一区 二区| 亚洲天堂网中文字| 亚洲国产成人av| 老鸭窝一区二区久久精品| 国产精品一区二区三区99| 国产不卡视频在线播放| 91在线你懂得| 91精品国产综合久久香蕉麻豆| 久久综合成人精品亚洲另类欧美 | www.欧美亚洲| 欧美日韩在线播| 精品欧美一区二区三区精品久久| 久久一日本道色综合| 日韩理论片在线| 日本vs亚洲vs韩国一区三区二区| 国产一区二区不卡老阿姨| gogo大胆日本视频一区| 欧美日韩成人一区二区| xvideos.蜜桃一区二区| 亚洲老司机在线| 日本欧美大码aⅴ在线播放| 国产成人精品免费一区二区| 在线观看欧美精品| 欧美精品一区二区三区蜜臀| 亚洲欧美自拍偷拍色图| 男人的j进女人的j一区| 99国产精品视频免费观看| 欧美一级片在线看| 亚洲乱码国产乱码精品精的特点| 另类小说综合欧美亚洲| 色综合欧美在线视频区| 亚洲精品一区二区三区蜜桃下载| 最近日韩中文字幕| 黄色成人免费在线| 欧美日韩一区二区电影| 国产欧美日产一区| 另类综合日韩欧美亚洲| 在线电影欧美成精品| 欧美国产成人在线| 美女一区二区三区| 欧美主播一区二区三区美女| 久久蜜桃av一区精品变态类天堂| 亚洲图片自拍偷拍| a4yy欧美一区二区三区| 精品久久久久香蕉网| 婷婷六月综合网| 色婷婷亚洲综合| 国产精品麻豆欧美日韩ww| 激情久久五月天| 这里是久久伊人| 亚洲国产三级在线| av动漫一区二区| 亚洲国产精华液网站w| 蜜臀av性久久久久蜜臀aⅴ流畅| 色婷婷久久综合| 中文字幕成人在线观看| 国产一区二区三区电影在线观看| 91精品免费在线观看| 首页欧美精品中文字幕| 欧美亚洲国产一区在线观看网站| 国产精品全国免费观看高清| 激情五月婷婷综合| 日韩美女主播在线视频一区二区三区| 亚洲最大成人综合| 欧美综合亚洲图片综合区| 亚洲精品国产a| 91国产丝袜在线播放| 亚洲三级在线看| 日本高清免费不卡视频| 伊人婷婷欧美激情| 欧洲精品一区二区三区在线观看| 亚洲精品免费视频| 在线精品视频小说1| 亚洲最大成人综合| 欧美日韩第一区日日骚| 首页综合国产亚洲丝袜| 91精品国产色综合久久ai换脸| 日韩不卡在线观看日韩不卡视频| 欧美日韩的一区二区| 水蜜桃久久夜色精品一区的特点| 欧美一区二区在线免费观看| 日本在线观看不卡视频| 欧美xxxx在线观看| 国产精品资源在线观看| 国产精品久久看| 91国内精品野花午夜精品| 亚洲国产毛片aaaaa无费看| 欧美精品在欧美一区二区少妇| 日韩精品一卡二卡三卡四卡无卡| 日韩欧美一二三四区| 国产黑丝在线一区二区三区| 国产精品乱人伦| 在线观看亚洲成人| 天堂蜜桃一区二区三区 | 激情综合一区二区三区| 精品国产91乱码一区二区三区| 国产一区 二区 三区一级| 中文字幕亚洲在| 欧美亚洲综合另类| 麻豆视频观看网址久久| 国产精品女同互慰在线看| 91麻豆福利精品推荐| 日本不卡高清视频| 国产精品视频免费看| 欧美日韩国产一区| 久久66热re国产| 亚洲另类色综合网站|