Testing out JmonkeyEngine to make a game in Scala with Akka Actors within a pure FP layer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
620 B

4 years ago
  1. package com.jme3.scene
  2. package object shape {
  3. object Box {
  4. /**
  5. * Creates a new box.
  6. * <p>
  7. * The box has a center of 0,0,0 and extends in the out from the center by
  8. * the given amount in <em>each</em> direction. So, for example, a box
  9. * with extent of 0.5 would be the unit cube.
  10. *
  11. * @param xs the size of the box along the x axis, in both directions.
  12. * @param ys the size of the box along the y axis, in both directions.
  13. * @param zs the size of the box along the z axis, in both directions.
  14. */
  15. def apply(xs: Float, ys: Float, zs: Float): Box = new Box(xs, ys, zs)
  16. }
  17. }