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

7
LINES

< > BotCompany Repo | #1032982 // scaleDoubleRange

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

Transpiled version (3976L) is out of date.

static DoubleRange scaleDoubleRange(DoubleRange r, double factor) {
  ret r == null ?: DoubleRange(r.start*factor, r.end*factor);
}

static DoubleRange scaleDoubleRange(double factor, DoubleRange r) {
  ret scaleDoubleRange(r, factor);
}

Author comment

Began life as a copy of #1024580

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032982
Snippet name: scaleDoubleRange
Eternal ID of this version: #1032982/2
Text MD5: 261ec70d541617196cb127e340cd5b14
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-11 17:12:05
Source code size: 239 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 211 / 289
Version history: 1 change(s)
Referenced in: [show references]