Capítulo 343 de 859

Chapter 343: Cylindrical

Core Idea

This class can be used to represent points in 3D space as Cylindrical coordinates.

Key Concepts

  • radius : number: The distance from the origin to a point in the x-z plane.
  • theta : number: A counterclockwise angle in the x-z plane measured in radians from the positive z-axis.
  • y : number: The height above the x-z plane.

Reference Tables

Constructor

Signature
new Cylindrical( radius : number, theta : number, y : number )

Properties

PropertyDescription
.radius : numberThe distance from the origin to a point in the x-z plane.
.theta : numberA counterclockwise angle in the x-z plane measured in radians from the positive z-axis.
.y : numberThe height above the x-z plane.

Methods

MethodDescription
.clone() : CylindricalReturns a new cylindrical with copied values from this instance.
.copy( other : Cylindrical ) : CylindricalCopies the values of the given cylindrical to this instance.
.set( radius : number, theta : number, y : number ) : CylindricalSets the cylindrical components by copying the given values.
.setFromCartesianCoords( x : number, y : number, z : number ) : CylindricalSets the cylindrical components from the given Cartesian coordinates.
.setFromVector3( v : Vector3 ) : CylindricalSets the cylindrical components from the given vector which is assumed to hold Cartesian coordinates.

Key Takeaways

  1. Most relevant properties: radius, theta, y.
  2. Key methods: clone, copy, set, setFromCartesianCoords.

Connects To