Index Topic Contents | |||
Previous Topic: DAStatic Properties Relevant to DAMontage Objects Next Topic: DAStatic Properties Relevant to DANumber Objects |
DAStatic Functions Relevant to DANumber Objects
DAStatics Class
AbsCreates 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.
lib.Abs(
a
)Parameters
- a
- The DANumber object to apply the operation to.
Return Values
Returns the DANumber object.
DAStatics Class
AcosCreates a DANumber object that represents the arccosine (inverse cosine) of the argument.
lib.Acos(
a
)Parameters
- a
- The DANumber object. The value is assumed to be a cosine value.
Return Values
Returns the DANumber object.
See Also
DAStatics Class
AddCreates 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).
lib.Add(
a,
b
)Parameters
- a and b
- The DANumber objects to add.
Return Values
Returns the DANumberobject.
DAStatics Class
AsinCreates a DANumberobject that represents the arcsine (inverse sine) of the given argument.
lib.Asin(
a
)Parameters
- a
- The DANumber object. The value is assumed to be a sine value.
Return Values
Returns the DANumber object.
See Also
DAStatics Class
AtanCreates a DANumber object that represents the arctangent (inverse tangent) of the given argument.
lib.Atan(
a
)Parameters
- a
- The DANumber object.
Return Values
Returns the DANumber object.
See Also
DAStatics Class
Atan2Creates 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.
lib.Atan2(
a,
b
)Parameters
- a and b
- The DANumber objects to divide.
Return Values
Returns the DANumber object.
See Also
DAStatics Class
CeilingCreates 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.
lib.Ceiling(
a
)Parameters
- a
- The DANumber object to find the ceiling for.
Return Values
Returns the DANumber object.
DAStatics Class
CosCreates a the DANumber object that represents the cosine of the given argument.
lib.Cos(
a
)Parameters
- a
- The DANumber object. The value is assumed to be in radians.
Return Values
Returns the DANumber object.
See Also
DAStatics Class
DANumberConverts a number (a double) to a DANumber. The only time DANumber is used is when converting numbers to a corresponding DANumber objects.
lib.DANumber(
a
)Parameters
- a
- The number (double) to be converted.
Return Values
Returns the DANumber object.
DAStatics Class
DerivativeCreates 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.
lib.Derivative(
a
)Parameters
- a
- The DANumber object for which to calculate the derivative.
Return Values
Returns the DANumber object.
DAStatics Class
DivCreates DANumber object representing the quotient of the given arguments. The value is the value of a divided by the value of b (a/b).
lib.Div(
a,
b
)Parameters
- a and b
- The DANumber objects to divide.
Return Values
Returns DANumber the object.
DAStatics Class
EQCreates 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.
lib.EQ(
a,
b
)Parameters
- a and b
- The DANumber objects to compare.
Return Values
Returns the DABoolean object.
DAStatics Class
ExpCreates 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.
lib.Exp(
a
)Parameters
- a
- The DANumber object to apply as an exponent of e.
Return Values
Returns the DANumber object.
See Also
DAStatics Class
FloorCreates the DANumber that represents the floor value, the largest integer value that is less than or equal to the value of the given argument.
lib.Floor(
a
)Parameters
- a
- The DANumber object to find the floor for.
Return Values
Returns the DANumber object.
DAStatics Class
GTCreates 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.
lib.GT(
a,
b
)Parameters
- a and b
- The DANumber objects to compare.
Return Values
Returns the DABoolean object.
DAStatics Class
GTECreates DABoolean object that represents the relation a ³ b. The value is TRUE when the value of a is greater than or equal to the value of b, otherwise, it is FALSE.
lib.GTE(
a,
b
)Parameters
- a and b
- The DANumber objects to compare.
Return Values
Returns the DABoolean object.
DAStatics Class
IntegralCreates a DANumber object that represents the sum of all values of a from the start time to the present.
lib.Integral(
a
)Parameters
- a
- The DANumber object to integrate.
Return Values
Returns the DANumber object.
DAStatics Class
InterpolateAnimCreates a DANumber object the moves along the interval in duration seconds. Velocity is constant.
lib.InterpolateAnim(
from,
to,
duration
)Parameters
- from
- The beginning DANumber object. This must be an animated number.
- to
- The ending DANumber object. This must be an animated number.
- duration
- The DANumber object representing the length of time, in seconds. This must be an animated number.
Return Values
Returns the DANumber object.
DAStatics Class
InterpolateSame as InterpolateAnim except the arguments are non-animated numbers(doubles).
lib.Interpolate(
from,
to,
duration
)DAStatics Class
LnCreates 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.
lib.Ln(
DANumber a
)Parameters
- a
- The DANumber object for which to calculate the natural logarithm.
Return Values
Returns the DANumber object.
See Also
DAStatics Class
Log10Creates 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.
lib.Log10(
a
)Parameters
- a
- The DANumber object for which to calculate the common logarithm.
Return Values
Returns the DANumber object.
DAStatics Class
LTCreates 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.
lib.LT(
a,
b
)Parameters
- a and b
- The DANumber objects to compare.
Return Values
Returns the DABoolean object.
DAStatics Class
LTECreates a DABoolean object that represents the relation a £ b. The value is TRUE when the value of a is less than or equal to the value of b, otherwise, it is FALSE.
lib.LTE(
a,
b
)Parameters
- a and b
- The DANumber objects to compare.
Return Values
Returns the DABoolean object.
DAStatics Class
ModCreates a DANumber object that represents the modulus of the given arguments. The value is the modulus, the remainder of the integer value of a divided by the integer value of b.
lib.Mod(
a,
b
)Parameters
- a and b
- The DANumber objects to calculate the modulus for.
Return Values
Returns the DANumber object.
DAStatics Class
MulCreates a DANumber representing the product of the given arguments. The value is the value of a multiplied by the value of b (a ´ b).
lib.Mul(
a,
b
)Parameters
- a and b
- The DANumber objects to multiply.
Return Values
Returns the DANumber object.
DAStatics Class
NECreates 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.
lib.NE(
a,
b
)Parameters
- a and b
- The DANumber objects to compare.
Return Values
Returns the DABoolean object.
DAStatics Class
NegCreates a DANumber object representing the negation of the given arguments. The value is equal to the value of a subtracted from zero (0 - a).
lib.Neg(
DANumber a
)Parameters
- a
- The DANumber object to negate.
Return Values
Returns the DANumber object.
DAStatics Class
NumberBSplineCreates 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).
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.
lib.NumberBSpline(
degree,
knots,
control_elements,
weights,
evaluation
)Parameters
- degree
- A number representing the mathematical degree of the B-spline to evaluate. Must be 1, 2, or 3.
- knots
- An array of DANumber objects representing the knots used to calculate the B-spline.
- control_elements
- An array of DANumber objects representing the control elements used to calculate the B-spline.
- weights
- An 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
- A DANumber object that controls the spline evaluation.
Return Values
Returns the DANumber object.
DAStatics Class
PowCreates a DANumber representing a raised to the power of b. The value is equal to ab.
lib.Pow(
a,
b
)Parameters
- a and b
- The DANumber objects to apply the operation to.
Return Values
Returns the DANumber object.
DAStatics Class
RoundCreates a DANumber object that represents the value of the given argument, rounded to the nearest integer.
lib.Round(
a
)Parameters
- a
- The DANumber object to be rounded.
DAStatics Class
SeededRandomCreates a DANumber object that represents an infinite, time-varying sequence of pseudo-random values.
lib.SeededRandom(
seed
)Parameters
- seed
- The double that provides the seed, or starting value, for the sequence.
Return Values
Returns the DANumber object.
DAStatics Class
SinCreates a DANumber object that represents the sine of the given argument.
lib.Sin(
a
)Parameters
- a
- The DANumber object. The value is assumed to be in radians.
Return Values
Returns the DANumber object.
See Also
DAStatics Class
SlowInSlowOutAnimCreates 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.
lib.SlowInSlowOutAnim(
from,
to,
duration,
acceleration
)Parameters
- from
- The DANumber object that is the beginning of the animation. This must be an animated number.
- to
- The DANumber object that is the end of the animation. This must be an animated number.
- duration
- The DANumber object that is the length of the animation, in seconds.
- acceleration
- The DANumber object that is the rate of acceleration, in Gs. This must be an animated number.
Return Values
Returns the DANumber object.
DAStatics Class
SlowInSlowOutSame as SlowInSlowOutAnim except that the arguments are non-animated numbers (doubles).
lib.SlowInSlowOut(
from,
to,
duration,
acceleration
)DAStatics Class
SqrtCreates a DANumber object that represents the square root of the given argument. The value is the square root of the value of a.
lib.Sqrt(
a
)Parameters
- a
- The DANumber object to apply the square root operation to.
Return Values
Returns the DANumber object.
DAStatics Class
SubCreates a DANumber object representing the difference of the given arguments. The value is the value of b subtracted from a (a - b).
lib.Sub(
a,
b
)Parameters
- a and b
- The DANumber objects to subtract.
Return Values
Returns the DANumber object.
DAStatics Class
TanCreates a DANumber object that represents the tangent of the given argument.
lib.Tan(
a
)Parameters
- a
- The DANumber object. The value is assumed to be in radians.
Return Values
Returns the DANumber object.
See Also
DAStatics Class
ToDegreesCreates a DANumber object that represents the value of the given argument converted from radians to degrees.
lib.ToDegrees(
a
)Parameters
- a
- The DANumber object to convert.
Return Values
Returns the DANumber object.
DAStatics Class
ToRadiansCreates a DANumber object that represents the value of the given argument converted from degrees to radians.
lib.ToRadians(
a
)Parameters
- a
- The DANumber object to convert.
Return Values
Returns the DANumber object.
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.