Skip to content

Multiplies a nonoverlapping increasing sequence of floats by a scalar

License

Notifications You must be signed in to change notification settings

mikolalysenko/robust-scale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

robust-scale

Scales a nonoverlapping increasing sequence of floats by a single floating point value.

testling badge

build status

Install

	npm install robust-scale

Example

var robustScale = require("robust-scale")

robustScale([1, 1e64], 2)

API

require("robust-scale")(a, s)

Multiplies a nonoverlapping increasing sequence of floats by a float.

  • a is the sequence to multiply
  • s is the amount to scale a by. Must be a single float

Returns An array encoding the product a*s.

Credits

Based on JRS robust geometry predicates

Implementation (c) 2013-2014 Mikola Lysenko. MIT License

About

Multiplies a nonoverlapping increasing sequence of floats by a scalar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published