cylinderRadius Method

Test if this cone is a cylinder.

  • A cone is cylindrical if both conditions hold:
    1. cross sections are circles of equal radius
    2. axis is perpendicular to cross sections
  • Radii within smallMetricDistance are considered equal.

cylinderRadius(allowSkew: boolean = false): number

@returns cross sectional radius > 0 if cylindrical cone; otherwise 0 for non-cylindrical or degenerate cone.

Parameter Type Description
allowSkew boolean whether to test the first condition only. Default value is false: test both conditions.

Returns - number

cross sectional radius > 0 if cylindrical cone; otherwise 0 for non-cylindrical or degenerate cone.

Defined in

Last Updated: 20 May, 2026