Files
cocos4/cocos/core/primitive/cone.ts
T
Leslie Leigh (李的序) 66b01c565b Bump gift to 1.2.1 to being rescued from some declaration generate errors (#5882)
* Bump gift to 1.2.1 to being rescued from some declaration generate errors

* Continue bump
2019-12-12 17:19:29 +08:00

24 lines
613 B
TypeScript

/**
* @category 3d/primitive
*/
import cylinder, { ICylinderOptions } from './cylinder';
import { IGeometry } from './define';
type IConeOptions = ICylinderOptions;
/**
* @zh
* 生成一个圆锥。
* @param radius 圆锥半径。
* @param height 圆锥高度。
* @param opts 圆锥参数选项。
*/
export default function (
radius = 0.5,
height = 1,
opts: RecursivePartial<IConeOptions> = {},
): IGeometry /* TODO: Explicit since ISSUE https://github.com/microsoft/TypeScript/issues/31280 , changes required once the issue is fixed. */ {
return cylinder(0, radius, height, opts);
}