My favorites | English | Sign in

o3d.BezierCurveKey Class Reference

Inherits o3d.CurveKey

List of all members.


Detailed Description

An CurveKey that uses a bezier curve for interpolation between this key and the next.

Public Member Functions

destroy() o3d.CurveKey
boolean  isAClassName(className) o3d.ObjectBase

Public Properties

string className o3d.ObjectBase
number clientId o3d.ObjectBase
number input o3d.CurveKey
!o3d.Float2 inTangent o3d.BezierCurveKey
number output o3d.CurveKey
!o3d.Float2 outTangent o3d.BezierCurveKey

Member Function Documentation

BezierCurveKey.destroy ( ) [inherited from o3d.CurveKey]

Destroys this key, removing it from its owner.

boolean BezierCurveKey.isAClassName ( string className ) [inherited from o3d.ObjectBase]

Takes the name of a class as an argument, and returns true if this object is either an instance of that class or derives from that class.

var t = pack.createObject('o3d.Transform');
t.isAClassName('o3d.Transform');    // true
t.isAClassName('o3d.ParamObject');  // true
t.isAClassName('o3d.Shape');        // false
Parameters:
className Name of class to check for.
Returns:
boolean.true if this object is a or is derived from the given class name.

Member Property Documentation

string BezierCurveKey.className [inherited from o3d.ObjectBase]

The concrete class name for an object derived from ObjectBase. If you want to know if an object is of a certain type you should use objectBase.isAClassName

var t = pack.createObject('o3d.Transform');
t.className == 'o3d.Transform';  // true
This property is read-only.
number BezierCurveKey.clientId [inherited from o3d.ObjectBase]

Unique id of the object. This id will be unique, even across multiple O3D clients in the same page. This property is read-only.

number BezierCurveKey.input [inherited from o3d.CurveKey]

The input of this key.

!o3d.Float2 BezierCurveKey.inTangent

The in tangent for this key.

number BezierCurveKey.output [inherited from o3d.CurveKey]

The output of this key.

!o3d.Float2 BezierCurveKey.outTangent

The out tangent for this key.