Hide menu
Loading...
Searching...
No Matches
SphericalSurface

Defines a spherical surface.

A spherical surface is defined by a position axis returned by position and a radius.

Extends

Constructors

Constructor

new SphericalSurface(position, radius): SphericalSurface

Creates a spherical surface from a position axis and radius.

Throws a RangeError if radius is less than 0.

Parameters

position

Axis3d

Position axis of the spherical surface.

radius

number

Radius of the spherical surface.

Returns

SphericalSurface

Overrides

ElementarySurface.constructor

Properties

position

readonly position: Axis3d

Position axis of the surface.

Inherited from

ElementarySurface.position


radius

readonly radius: number

Radius of the spherical surface.


type

readonly type: SurfaceType = SurfaceType.UNDEFINED

Type of the surface.

Inherited from

ElementarySurface.type

Accessors

direction

Get Signature

get direction(): Direction

Returns the Z direction of the surface axis.

Returns

Direction

Inherited from

ElementarySurface.direction


id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

ElementarySurface.id


location

Get Signature

get location(): Point

Returns the origin point of the surface axis.

Returns

Point

Inherited from

ElementarySurface.location