Lingo Dictionary
73
The result is 1, which is the numerical equivalent of
TRUE
.
The first logical expression in the following statement is
TRUE
; and the second logical expression is
FALSE
. Because both logical expressions are not
TRUE
, the logical operator displays the result 0,
which is the numerical equivalent of
FALSE
.
put 1 < 2 and 2 < 1
-- 0
See also
not
,
or
angle
Syntax
member(
whichCastmember
).modelResource(
whichModelResource
).\
emitter.angle
Description
3D emitter property; describes the area into which the particles of a particle system are emitted. A
particle system is a model resource whose type is
#particle
.
The primary direction of particle emission is the vector set by the emitter’s
direction
property.
However, the direction of emission of a given particle will deviate from that vector by a random
angle between 0 and the value of the emitter’s
angle
property.
The effective range of this property is 0.0 to 180.0. The default value is 180.0.
Example
This statement sets the angle of emission of the model resource named mrFount to 1, which
causes the emitted particles to form a thin line.
member("fountain").modelResource("mrFount").emitter.angle = 1
See also
emitter
,
direction
angleBetween
Syntax
vector1
.angleBetween(
vector2
)
Description
3D vector method; returns the angle between two vectors, in degrees.
Example
In this example,
pos1
is a vector on the X axis and
pos2
is a vector on the Y axis. The angle
between these two vectors is 90°. The value returned by
pos1.angleBetween(pos2)
is 90.0000.
pos1 = vector(100, 0, 0)
pos2 = vector(0, 100, 0)
put pos1.angleBetween(pos2)
-- 90.0000
See also
dot()
,
dotProduct()
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...