我有两个六边形
我想点击一个六边形的中心,点击的六边形将旋转30度,而另一个将保持不动。我想要做的是:
void myMouse( int button, int state, int x, int y ){
int selected=0;
if (x<=102 && x>=95 && y<=452 && y>=446)
selected=1;
if((selected == 1) &&( button == GLUT_LEFT_BUTTON ))
{
嗨!我有个有趣的问题。
我在HTML画布中画了一系列六边形(忽略点)
对于每一个六边形,我有它们中心的x和y坐标,这就是我识别它们的方法。
我将六边形存储在一个名为六边形的数组中,在其中存储六角。
function Hexagon()
{
this.shape
this.x
this.y
}
我有一个函数,它返回一个对象,该对象包含给定的六边形的所有相邻六边形。
function get_adjacent_hexagons(hexagon)
{
var x = hexagon.x
var y =
当迭代一个<ul>并使所有的子程序都可拖放时,我遇到了一个问题。我想要使安全壳的工作方式使所有的<li>都在<ul>的范围内。
currentHexList.children().draggable({ //currentHexList is a jQuery object in a for loop that has the value of a <ul> list
scroll: false,
containment: 'parent'
});
所有的一切都是“在遏制工程中一样好”,但并不是有意的。这是我要做的