Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Spherical

Hierarchy

  • Spherical

Index

Constructors

constructor

  • new Spherical(radius?: number, phi?: number, theta?: number): I3JS.Spherical
  • The poles (phi) are at the positive and negative y axis. The equator (theta) starts at positive z.

    Parameters

    • Optional radius: number

      The radius, or the Euclidean distance (straight-line distance) from the point to the origin. Default is 1.0.

    • Optional phi: number

      polar angle in radians from the y (up) axis. Default is 0.

    • Optional theta: number

    Returns I3JS.Spherical

Properties

phi

phi: number

Polar angle in radians from the y (up) axis. Default is 0.

default

0

radius

radius: number

The radius, or the Euclidean distance (straight-line distance) from the point to the origin. Default is 1.0.

default

1

theta

theta: number

Equator angle in radians around the y (up) axis. Default is 0.

default

0

Methods

clone

copy

makeSafe

set

setFromCartesianCoords

  • setFromCartesianCoords(x: number, y: number, z: number): I3JS.Spherical

setFromVector3

Generated using TypeDoc