Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1035275 // test_cyclicDistance

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (7936L) is out of date.

svoid test_cyclicDistance() {
  assertEqualsVerbose(cyclicDistance(40, 50, 360), 10.0);
  assertEqualsVerbose(cyclicDistance(50, 40, 360), 10.0);
  assertEqualsVerbose(cyclicDistance(10, 350, 360), 20.0);
  assertEqualsVerbose(cyclicDistance(350, 10, 360), 20.0);
}

Author comment

Began life as a copy of #1035274

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035275
Snippet name: test_cyclicDistance
Eternal ID of this version: #1035275/2
Text MD5: 3defdc2909d5754c7ab8c4a8771ab7de
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-28 20:46:44
Source code size: 270 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 44 / 72
Version history: 1 change(s)
Referenced in: [show references]