Sha256: 96074abe0d7d605a4e957bf83e7b017fa0d71f651bc53ced3ee52ea1205cdfd1
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 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.3-java | docs/_methods/scale_to_processing.md |
pbox2d-1.0.2-java | docs/_methods/scale_to_processing.md |