Sha256: 904dd1a4b46fa470c264771912c41f3f080331680e3698ad3dd7d5074904873e
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 Bytes
Contents
--- layout: post title: "scale_to_processing" permalink: /methods/scale_to_processing/ --- From sketch to physics world and vice versa The java code ([PBox2D][pbox2d] inherits this from [Box2DProcessing][pbox2d]) ### public float scaleToProcessing(float val) ### ```java public float scaleToProcessing(float val) { return val * scaleFactor; } ``` ### Ruby usage ### Use camel case ```ruby scale_to_processing(val) ``` [pbox2d]:{{ site.github.url }}/classes/pbox2d/ [world_to_processing]:{{ site.github.url }}/methods/world_to_processing/ [examples]:https://github.com/ruby-processing/JRubyArt-examples/tree/master/external_library/gem/pbox2d/
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pbox2d-1.0.1-java | docs/_methods/scale_to_processing.md |
pbox2d-1.0.0-java | docs/_methods/scale_to_processing.md |