Sphere

<< Click to Display Table of Contents >>

Navigation:  NxLib API > Common Tree Elements > Primitive >

Sphere

A sphere primitive describes a sphere in 3d space.

Format

Object/Sphere

This is the node of the parameter or return value representing a 3d sphere. Its sub nodes contain the sphere parameters as follows:


Center (Array/Vector)

A Vector specifying the center of the sphere.



0 (Number)

The x position of the center.



1 (Number)

The y position of the center.



2 (Number)

The z position of the center.


Radius (Number)

The radius of the sphere.