Skip to main content

Cylindrical

A point's cylindrical coordinates.

Constructor

Cylindrical

function Cylindrical( radius: Float, theta: Float, y: Float ): void;  

radius - distance from the origin to a point in the x-z plane. Default is 1.0.
theta - counterclockwise angle in the x-z plane measured in radians from the positive z-axis. Default is 0.
y - height above the x-z plane. Default is 0.

Properties

radius

radius: Float;  

theta

theta: Float;  

y

y: Float;  

Methods

clone

function clone( ): Cylindrical;  

Returns a new cylindrical with the same .radius, .theta and .y properties as this one.

copy

function copy( other: Cylindrical ): this;  

Copies the values of the passed Cylindrical's .radius, .theta and .y properties to this cylindrical.

set

function set( radius: Float, theta: Float, y: Float ): this;  

Sets values of this cylindrical's .radius, .theta and .y properties.

setFromVector3

function setFromVector3( vec3: Vector3 ): this;  

Sets values of this cylindrical's .radius, .theta and .y properties from the .ector3.

setFromCartesianCoords

function setFromCartesianCoords( x: Float, y: Float, z: Float ): this;  

Sets values of this cylindrical's .radius, .theta and .y properties from Cartesian coordinates.

Source

src/math/Cylindrical.js