MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / getDistance

Method getDistance

code/main/Pos.ts:22–24  ·  view source on GitHub ↗
(pos: Pos)

Source from the content-addressed store, hash-verified

20 }
21
22 public getDistance(pos: Pos): Pos{
23 return new Pos(this.x-pos.x, this.y-pos.y);
24 }
25
26 public invert(): void{
27 var temp: number = this.x;

Callers 15

isPatternDoneMethod · 0.45
runMethod · 0.45
isPatternDoneMethod · 0.45
runMethod · 0.45
runMethod · 0.45
updateMethod · 0.45
isPatternDoneMethod · 0.45
isPatternDoneMethod · 0.45
runMethod · 0.45
goTowardsMethod · 0.45
updateMethod · 0.45
isPatternDoneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected