Home
last modified time | relevance | path

Searched refs:straightDirection (Results 1 – 2 of 2) sorted by relevance

/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/pcbnew/router/
H A Dpns_mouse_trail_tracer.cpp159 DIRECTION_45 straightDirection; in GetPosture() local
163 straightDirection = DIRECTION_45( straight.CSegment( 0 ) ); in GetPosture()
169 newDirection = straightDirection; in GetPosture()
171 newDirection = m_direction.IsDiagonal() ? diagDirection : straightDirection; in GetPosture()
188 if( straightDirection == m_lastSegDirection ) in GetPosture()
190 if( m_direction != straightDirection ) in GetPosture()
193 straightDirection.Format() ) ); in GetPosture()
196 m_direction = straightDirection; in GetPosture()
200 if( m_direction != straightDirection ) in GetPosture()
222 DIRECTION_45 candidate = m_direction.IsDiagonal() ? straightDirection in GetPosture()
[all …]
/dports/games/granatier/granatier-21.12.3/src/
H A Dplayer.cpp182 …int straightDirection = 0; //straight direction: -1: backward; 1:foreward; while foreward… in updateMove() local
208 straightDirection = xDirection; in updateMove()
220 straightDirection = yDirection; in updateMove()
231 if(straightDirection*deltaStraightCellCenter >= 0) in updateMove()
252 …if(deltaStraightCellCenter * straightDirection > 0 && !m_arena->getCell(moveStartRow, moveStartCol… in updateMove()
283 …if(deltaPerpendicularCellCenter != 0 && (straightDirection * deltaStraightCellCenter) < 0) //not … in updateMove()
306 …if(straightDirection * deltaStraightCellCenter < 0) //the cell center to move is in the next c… in updateMove()
308 deltaStraightMove += straightDirection * Granatier::CellSize; in updateMove()
309 deltaAskedMove -= straightDirection * Granatier::CellSize; in updateMove()
332 deltaStraightMove += straightDirection * Granatier::CellSize; in updateMove()
[all …]