未验证 提交 1303b650 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #21036 from ycw/patch-1

ts: added .computeFrenetFrames
import { Vector } from './../../math/Vector2';
import { Vector3 } from './../../math/Vector3';
// Extras / Core /////////////////////////////////////////////////////////////////////
......@@ -76,6 +77,15 @@ export class Curve<T extends Vector> {
*/
getTangentAt( u: number, optionalTarget?: T ): T;
/**
* Generate Frenet frames of the curve
*/
computeFrenetFrames( segments: number, closed?: boolean ): {
tangents: Vector3[],
normals: Vector3[],
binormals: Vector3[]
};
clone(): Curve<T>;
copy( source: Curve<T> ): this;
toJSON(): object;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册