Skip to content

@orillusion/core


Class: Cylindrical ​

Defined in: src/math/Cylindrical.ts:8

Cylindrical coordinates (radius from the Y axis, azimuth theta around +Y measured from +Z toward +X, height y). Same convention as three.js.

Constructors ​

Constructor ​

new Cylindrical(radius?, theta?, y?): Cylindrical

Defined in: src/math/Cylindrical.ts:16

Parameters ​

radius? ​

number = 1

theta? ​

number = 0

y? ​

number = 0

Returns ​

Cylindrical

Properties ​

radius ​

radius: number

Defined in: src/math/Cylindrical.ts:10

Distance from the Y axis.


theta ​

theta: number

Defined in: src/math/Cylindrical.ts:12

Azimuth around +Y from +Z, radians.


y ​

y: number

Defined in: src/math/Cylindrical.ts:14

Height along Y.

Methods ​

set() ​

set(radius, theta, y): this

Defined in: src/math/Cylindrical.ts:22

Parameters ​

radius ​

number

theta ​

number

y ​

number

Returns ​

this


copy() ​

copy(other): this

Defined in: src/math/Cylindrical.ts:29

Parameters ​

other ​

Cylindrical

Returns ​

this


clone() ​

clone(): Cylindrical

Defined in: src/math/Cylindrical.ts:33

Returns ​

Cylindrical


setFromVector3() ​

setFromVector3(v): this

Defined in: src/math/Cylindrical.ts:37

Parameters ​

v ​

Vector3

Returns ​

this


setFromCartesianCoords() ​

setFromCartesianCoords(x, y, z): this

Defined in: src/math/Cylindrical.ts:41

Parameters ​

x ​

number

y ​

number

z ​

number

Returns ​

this


toVector3() ​

toVector3(out?): Vector3

Defined in: src/math/Cylindrical.ts:48

Parameters ​

out? ​

Vector3 = ...

Returns ​

Vector3

Released under the MIT License