Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.20 KB | None | 0 0
  1. for(i <- 0 until vertices) {
  2.     val theta = i * 2 * math.Pi / vertices.toFloat
  3.         val xOff = radius * math.cos(theta)
  4.         val zOff = radius * math.sin(theta)
  5.         Vertex(x + xOff, y, z + zOff)
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement