DAStatics Functions Relevant to DANumber Objects

Abs Creates a DANumber that represents the absolute value of the given animated number.
Acos Creates a DANumber object that represents the arccosine (inverse cosine) of the argument.
Add Creates a DANumber object representing the sum of the given arguments.
Asin Creates a DANumber object that represents the arcsine (inverse sine) of the given argument.
Atan Creates a DANumber object that represents the arctangent (inverse tangent) of the given argument.
Atan2 Creates the DANumber object that represents the arctangent (inverse tangent) of the quotient of the given arguments.
Ceiling Creates the DANumber object that represents the ceiling value, the smallest integer value that is greater than or equal to the value of the given argument.
Cos Creates a the DANumber object that represents the cosine of the given argument.
DANumber Converts a number (a double) to a DANumber.
Derivative Creates a DANumber object that is the instantaneous derivative (rate of change) of the given argument.
Div Creates a DANumber object representing the quotient of the given arguments.
EQ Creates a DABoolean object that represents the relation a = b.
Exp Creates a DANumber object that represents the exponential of the given argument.
Floor Creates the DANumber that represents the floor value, the largest integer value that is less than or equal to the value of the given argument.
GT Creates a DABoolean object that represents the relation a > b.
GTE Creates DABoolean object that represents the relation a ³ b.
Integral Creates a DANumber object that represents the sum of all values of a from the start time to the present.
Interpolate Creates a DANumber object that moves along the interval in duration seconds. Same as InterpolateAnim except the parameters are nonanimated numbers (doubles).
InterpolateAnim Creates a DANumber object that moves along the interval in duration seconds.
Ln Creates a DANumber object that represents the natural logarithm of the given argument.
Log10 Creates DANumber object that represents the common logarithm (base-10 logarithm) of the given argument.
LT Creates a DABoolean object that represents the relation a < b.
LTE Creates a DABoolean object that represents the relation a £ b.
Mod Creates a DANumber object that represents the modulus of the given arguments.
ModifiableNumber This function is obsolete.
Mul Creates a DANumber representing the product of the given arguments.
NE Creates a DABoolean object that represents the relation a != b.
Neg Creates a DANumber object representing the negation of the given arguments.
NumberBSpline Creates a DANumber object based on a B-spline function.
Pow Creates a DANumber representing a raised to the power of b.
Round Creates a DANumber object that represents the value of the given argument, rounded to the nearest integer.
SeededRandom Creates a DANumber object that represents an infinite, time-varying sequence of pseudo-random values.
Sin Creates a DANumber object that represents the sine of the given argument.
SlowInSlowOut Creates a DANumber object that moves along the interval in duration seconds. Same as SlowInSlowOutAnim except that the parameters are nonanimated numbers (doubles).
SlowInSlowOutAnim Creates a DANumber object that moves along the interval in duration seconds.
Sqrt Creates a DANumber object that represents the square root of the given argument.
Sub Creates a DANumber object representing the difference of the given arguments.
Tan Creates a DANumber object that represents the tangent of the given argument.
ToDegrees Creates a DANumber object that represents the value of the given argument converted from radians to degrees.
ToRadians Creates a DANumber object that represents the value of the given argument converted from degrees to radians.

Abs

DAStatics Class

Creates a DANumber that represents the absolute value of the given animated number. The value is equal to the absolute value (the non-negative equivalent) of the value of a.

Syntax

lib.Abs( a )

Parameters

a
DANumber object to apply the operation to.

Return Value

Returns the DANumber object.

Acos

DAStatics Class

Creates a DANumber object that represents the arccosine (inverse cosine) of the argument.

Syntax

lib.Acos( a )

Parameters

a
DANumber object. The value is assumed to be a cosine value.

Return Value

Returns the DANumber object.

See Also

Asin

Add

DAStatics Class

Creates a DANumber object representing the sum of the given arguments. The value is the value of a added to the value of b (a + b).

Syntax

lib.Add( a, b )

Parameters

a and b
DANumber objects to add.

Return Value

Returns the DANumberobject.

Asin

DAStatics Class

Creates a DANumber object that represents the arcsine (inverse sine) of the given argument.

Syntax

lib.Asin( a )

Parameters

a
DANumber object. The value is assumed to be a sine value.

Return Value

Returns the DANumber object.

See Also

Acos

Atan

DAStatics Class

Creates a DANumber object that represents the arctangent (inverse tangent) of the given argument.

Syntax

lib.Atan( a )

Parameters

a
DANumber object.

Return Value

Returns the DANumber object.

See Also

Acos, Asin, Atan2

Atan2

DAStatics Class

Creates the DANumber object that represents the arctangent (inverse tangent) of the quotient of the given arguments. The value is the inverse tangent of the value of a divided by the value of b.

Syntax

lib.Atan2( a, b )

Parameters

a and b
DANumber objects to divide.

Return Value

Returns the DANumber object.

See Also

Acos, Asin

Ceiling

DAStatics Class

Creates the DANumber object that represents the ceiling value, the smallest integer value that is greater than or equal to the value of the given argument.

Syntax

lib.Ceiling( a )

Parameters

a
DANumber object to find the ceiling for.

Return Value

Returns the DANumber object.

Cos

DAStatics Class

Creates a DANumber object that represents the cosine of the given argument.

Syntax

lib.Cos( a )

Parameters

a
DANumber object. The value is assumed to be in radians.

Return Value

Returns the DANumber object.

See Also

Sin

DANumber

DAStatics Class

Converts a number (a double) to a DANumber. The only time DANumber is used is when converting numbers to a corresponding DANumber object.

Syntax

lib.DANumber( a )

Parameters

a
Number (double) to be converted.

Return Value

Returns the DANumber object.

Derivative

DAStatics Class

Creates a DANumber object that is the instantaneous derivative (rate of change) of the given argument. For example, a constant number yields a constant derivative of 0 and a value equal to "time" yields a constant derivative of 1.

Syntax

lib.Derivative( a )

Parameters

a
DANumber object for which to calculate the derivative.

Return Value

Returns the DANumber object.

Div

DAStatics Class

Creates DANumber object representing the quotient of the given arguments. The value is the value of a divided by the value of b (a/b).

Syntax

lib.Div( a, b )

Parameters

a and b
DANumber objects to divide.

Return Value

Returns DANumber the object.

EQ

DAStatics Class

Creates DABoolean object that represents the relation a = b. The value is TRUE when the value of a is equal to the value of b, otherwise, it is FALSE.

Syntax

lib.EQ( a, b )

Parameters

a and b
DANumber objects to compare.

Return Value

Returns the DABoolean object.

Exp

DAStatics Class

Creates a DANumber object that represents the exponential of the given argument. The value is the base of natural logarithms, e, raised to the power of the value of a.

Syntax

lib.Exp( a )

Parameters

a
DANumber object to apply as an exponent of e.

Return Value

Returns the DANumber object.

See Also

Ln

Floor

DAStatics Class

Creates the DANumber that represents the floor value, the largest integer value that is less than or equal to the value of the given argument.

Syntax

lib.Floor( a )

Parameters

a
DANumber object to find the floor for.

Return Value

Returns the DANumber object.

GT

DAStatics Class

Creates a DABoolean object that represents the relation a > b. The value is TRUE when the value of a is greater than the value of b, otherwise, it is FALSE.

Syntax

lib.GT( a, b )

Parameters

a and b
DANumber objects to compare.

Return Value

Returns the DABoolean object.

GTE

DAStatics Class

Creates DABoolean object that represents the relation ab. The value is TRUE when the value of a is greater than or equal to the value of b, otherwise, it is FALSE.

Syntax

lib.GTE( a, b )

Parameters

a and b
DANumber objects to compare.

Return Value

Returns the DABoolean object.

Integral

DAStatics Class

Creates a DANumber object that represents the sum of all values of a from the start time to the present.

Syntax

lib.Integral( a )

Parameters

a
DANumber object to integrate.

Return Value

Returns the DANumber object.

Interpolate

DAStatics Class

Creates a DANumber object that moves along the interval in duration seconds. Same as InterpolateAnim except the parameters are nonanimated numbers (doubles).

Syntax

lib.Interpolate( from, to, duration )

Parameters

from
A double value indicating the beginning. This is a nonanimated number.
to
A double value indicating the end. This is a nonanimated number.
duration
A double value representing the length of time, in seconds. This is a nonanimated number.

Return Value

Returns the DANumber object.

InterpolateAnim

DAStatics Class

Creates a DANumber object the moves along the interval in duration seconds. Velocity is constant.

Syntax

lib.InterpolateAnim( from, to, duration )

Parameters

from
Beginning DANumber object. This must be an animated number.
to
Ending DANumber object. This must be an animated number.
duration
DANumber object representing the length of time, in seconds. This must be an animated number.

Return Value

Returns the DANumber object.

Ln

DAStatics Class

Creates a DANumber object that represents the natural logarithm of the given argument. The value is the value by which the base of natural logarithms, e, must be raised to equal the value of a.

Syntax

lib.Ln( a )

Parameters

a
DANumber object for which to calculate the natural logarithm.

Return Value

Returns the DANumber object.

See Also

Exp

Log10

DAStatics Class

Creates DANumber object that represents the common logarithm (base-10 logarithm) of the given argument. The value is the value by which 10 must be raised to equal the value of a.

Syntax

lib.Log10( a )

Parameters

a
DANumber object for which to calculate the common logarithm.

Return Value

Returns the DANumber object.

LT

DAStatics Class

Creates a DABoolean object that represents the relation a < b. The value is TRUE when the value of a is less than the value of b, otherwise, it is FALSE.

Syntax

lib.LT( a, b )

Parameters

a and b
DANumber objects to compare.

Return Value

Returns the DABoolean object.

LTE

DAStatics Class

Creates a DABoolean object that represents the relation ab. The value is TRUE when the value of a is less than or equal to the value of b, otherwise, it is FALSE.

Syntax

lib.LTE( a, b )

Parameters

a and b
DANumber objects to compare.

Return Value

Returns the DABoolean object.

Mod

DAStatics Class

Creates a DANumber object that represents the modulus of the given arguments. The value is the modulus, the remainder of the floating-point value of a divided by the floating-point value of b.

Syntax

lib.Mod( a, b )

Parameters

a and b
DANumber objects to calculate the modulus for.

Return Value

Returns the DANumber object.

Remarks

If a=7.6 and b=3.1, then Mod(a,b)= 2.4, since 3.1 will go into 7.6 evenly two times, with a remainder of 2.4.

ModifiableNumber

DAStatics Class

This function is obsolete. Use the ModifiableBehavior function instead.

Mul

DAStatics Class

Creates a DANumber representing the product of the given arguments. The value is the value of a multiplied by the value of b (a * b).

Syntax

lib.Mul( a, b )

Parameters

a and b
DANumber objects to multiply.

Return Value

Returns the DANumber object.

NE

DAStatics Class

Creates a DABoolean object that represents the relation a != b. The value is TRUE when the value of a is not equal to the value of b, otherwise, it is FALSE.

Syntax

lib.NE( a, b )

Parameters

a and b
DANumber objects to compare.

Return Value

Returns the DABoolean object.

Neg

DAStatics Class

Creates a DANumber object representing the negation of the given arguments. The value is equal to the value of a subtracted from zero (0 - a).

Syntax

lib.Neg( a )

Parameters

a
DANumber object to negate.

Return Value

Returns the DANumber object.

NumberBSpline

DAStatics Class

Creates a DANumber object based on a B-spline function. The function depends on the control elements, the knot vector, the mathematical degree, and the weights of the control elements (these are optional).

Syntax

lib.NumberBSpline( degree, knots, control_elements, weights, evaluation )

Parameters

degree
Number representing the mathematical degree of the B-spline to evaluate. Must be 1, 2, or 3.
knots
Array of DANumber objects representing the knots used to calculate the B-spline.
control_elements
Array of DANumber objects representing the control elements used to calculate the B-spline.
weights
Array of DANumber objects representing the weights used to calculate the rational B-spline. There must be the same number of weights as control elements. For non-rational B-splines, the value of weights is null.
evaluation
DANumber object that controls the spline evaluation.

Return Value

Returns the DANumber object.

Remarks

A B-spline function without weights is piecewise polynomial and with weights is piecewise rational (the quotient of two polynomials). It requires that:

numberOfControlElements = numberOfKnots - degree + 1

The control elements define the approximate direction and shape of the function. The knots represent junction values, in parameter space, between the connected polynomial parts.

Given a degree d and a number of knots k, the function is valid in the range knotd to knotk-d+1, and is otherwise undefined. For example, for a degree 2 curve, the valid range is from the second knot to the next to the last knot, inclusive.

The returned DANumber is the traversal of the spline function according to the evaluation parameter. The evaluation parameter is a DANumber that must be in the valid range of the spline, which is [knotd, knotk-d+1]. Any values outside this range are automatically clamped to the end values.

Pow

DAStatics Class

Creates a DANumber representing a raised to the power of b. The value is equal to ab.

Syntax

lib.Pow( a, b )

Parameters

a and b
DANumber objects to apply the operation to.

Return Value

Returns the DANumber object.

Round

DAStatics Class

Creates a DANumber object that represents the value of the given argument, rounded to the nearest integer.

Syntax

lib.Round( a )

Parameters

a
DANumber object to be rounded.

SeededRandom

DAStatics Class

Creates a DANumber object that represents an infinite, time-varying sequence of pseudo-random values.

Syntax

lib.SeededRandom( seed )

Parameters

seed
The double value that provides the seed, or starting value, for the sequence.

Return Value

Returns the DANumber object.

Sin

DAStatics Class

Creates a DANumber object that represents the sine of the given argument.

Syntax

lib.Sin( a )

Parameters

a
DANumber object. The value is assumed to be in radians.

Return Value

Returns the DANumber object.

See Also

Cos

SlowInSlowOut

DAStatics Class

Creates a DANumber object that moves along the interval in duration seconds. Same as SlowInSlowOutAnim except that the parameters are nonanimated numbers (doubles).

Syntax

lib.SlowInSlowOut( from, to, duration, acceleration )

Parameters

from
A double value indicating the beginning of the animation. This is a nonanimated number.
to
A double value indicating the end of the animation. This is a nonanimated number.
duration
A double value indicating the length of the animation, in seconds. This is a nonanimated number.
acceleration
A double value indicating the rate of acceleration, in Gs. This is a nonanimated number.

Return Value

Returns the DANumber object.

SlowInSlowOutAnim

DAStatics Class

Creates a DANumber object that moves along the interval in duration seconds. The animation is dampened so that the number increases slowly, hits a maximum speed at the midpoint, and then decelerates until the end is reached. The acceleration is specified in Gs, or multiples of the earth's gravitational constant.

Syntax

lib.SlowInSlowOutAnim( from, to, duration, acceleration )

Parameters

from
DANumber object that is the beginning of the animation. This must be an animated number.
to
DANumber object that is the end of the animation. This must be an animated number.
duration
DANumber object that is the length of the animation, in seconds.
acceleration
DANumber object that is the rate of acceleration, in Gs. This must be an animated number.

Return Value

Returns the DANumber object.

Sqrt

DAStatics Class

Creates a DANumber object that represents the square root of the given argument. The value is the square root of the value of a.

Syntax

lib.Sqrt( a )

Parameters

a
DANumber object to apply the square root operation to.

Return Value

Returns the DANumber object.

Sub

DAStatics Class

Creates a DANumber object representing the difference of the given arguments. The value is the value of b subtracted from a (a - b).

Syntax

lib.Sub( a, b )

Parameters

a and b
DANumber objects to subtract.

Return Value

Returns the DANumber object.

Tan

DAStatics Class

Creates a DANumber object that represents the tangent of the given argument.

Syntax

lib.Tan( a )

Parameters

a
DANumber object. The value is assumed to be in radians.

Return Value

Returns the DANumber object.

See Also

Atan, Cos, Sin

ToDegrees

DAStatics Class

Creates a DANumber object that represents the value of the given argument converted from radians to degrees.

Syntax

lib.ToDegrees( a )

Parameters

a
DANumber object to convert.

Return Value

Returns the DANumber object.

ToRadians

DAStatics Class

Creates a DANumber object that represents the value of the given argument converted from degrees to radians.

Syntax

lib.ToRadians( a )

Parameters

a
DANumber object to convert.

Return Value

Returns the DANumber object.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.