MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / getCurrentXRight

Method getCurrentXRight

source/camera/SlopeWalk.cpp:166–174  ·  view source on GitHub ↗

get the value of slope currently pointed by index on the right path

Source from the content-addressed store, hash-verified

164
165// get the value of slope currently pointed by index on the right path
166int64_t SlopeWalk::getCurrentXRight(int64_t yy)
167{
168 if(mRightSlopeIndex != mRightSlopes.begin())
169 {
170 return getPreviousRightVertex().x + ((*mRightSlopeIndex) * (yy - getPreviousRightVertex().y))/VectorInt64::UNIT ;
171 }
172 else
173 return getCurrentRightVertex().x;
174}
175
176
177VectorInt64& SlopeWalk::getTopLeftVertex()

Callers 1

newBashAndSplashTilesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected