ellipsoid

An ellipsoidal solid.

Signatures

  • ellipsoid()
  • ellipsoid( float radiusX, float radiusY, float radiusZ )
  • ellipsoid( float radiusX, float radiusY, float radiusZ, vector position )
  • ellipsoid( vector radialA, float radiusBC )
  • ellipsoid( vector radialA, vector radialB, float radiusC )
  • ellipsoid( vector radialA, vector radialB, float radiusC, vector position )

Details

Constructors (1) and (4) create an ellipsoid with two of three radii to be equal while constructors (2), (3), (5) and (6) create ellipsoids with three different radii. In constructors (4), (5) and (6) the radial vector radialA is expected to be perpendicular to radialBC resp. radialB.

Casts To

solid

Parameters

radiusX

Radius of the ellipsoid in X direction.

radiusY

Radius of the ellipsoid in Y direction.

radiusZ

Radius of the ellipsoid in Z direction.

radialA

Vector defining the direction and length of the first radius of the ellipsoid.

radiusB

Vector defining the direction and length of the second radius of the ellipsoid.

radiusC

Third radius of the ellipsoid.

radiusBC

Vector defining the direction and length of the second and length of the third radius of the ellipsoid.

position

Translation vector that is applied to the ellipsoid.