setFromCartesianCoords method

Cylindrical setFromCartesianCoords(
  1. num x,
  2. num y,
  3. num z
)

Implementation

Cylindrical setFromCartesianCoords(num x, num y, num z) {
  radius = Math.sqrt(x * x + z * z);
  theta = Math.atan2(x, z);
  this.y = y;

  return this;
}