e2 docs angle
Jump to table of contents
Angle
= ang()
Same as ang(0,0,0) (1 ops)
= ang( Rv1)
Makes an angle (2 ops)
= ang( Rv1, Rv2, Rv3)
Makes an angle (2 ops)
= ang( Rv1)
Changes a vector variable into an angle variable. XYZ become PYR respectively (2 ops)
= angnorm( Rv1)
Gets the normalized angle of an angle (5 ops)
= angnorm( Rv1)
Gets the normalized angle of a number (5 ops)
= :pitch()
Gets the pitch of the angle (1 ops)
= :yaw()
Gets the yaw of the angle (1 ops)
= :roll()
Gets the roll of the angle (1 ops)
= :setPitch( Rv2)
Returns a copy of the angle with Pitch replaced (use as Ang = Ang:setPitch(...)) (2 ops)
= :setYaw( Rv2)
Returns a copy of the angle with Yaw replaced (use as Ang = Ang:setYaw(...)) (2 ops)
= :setRoll( Rv2)
Returns a copy of the angle with Roll replaced (use as Ang = Ang:setRoll(...)) (2 ops)
= round( Rv1)
Rounds PYR to the nearest integer (5 ops)
= round( Rv1, Decimals)
Rounds PYR to argument 2's decimal precision (5 ops)
= ceil( Rv1)
Rounds PYR up to the nearest integer (5 ops)
= ceil( Rv1, Decimals)
Rounds PYR up to argument 2's decimal precision (5 ops)
= floor( Rv1)
Rounds PYR down to the nearest integer (5 ops)
= floor( Rv1, Decimals)
Rounds PYR down to argument 2's decimal precision (5 ops)
= mod( Rv1, Rv2)
Returns the remainder after PYR have been divided by argument 2 (5 ops)
= mod( Rv1, Rv2)
Returns the remainder after the components of angle 1 have been divided by the components of angle 2 (5 ops)
= clamp( Rv1, Rv2, Rv3)
Clamps angle 1's PYR between argument 2(min) and argument 3(max) (5 ops)
= clamp( Rv1, Rv2, Rv3)
Clamps angle 1's PYR between the PYR of angle 2(min) and angle 3(max) (5 ops)
= mix( Rv1, Rv2, Rv3)
Combines angle 1's PYR with angle 2's PYR by a proportion given by argument 3 (between 0 and 1) (5 ops)
= shiftR( Rv1)
Shifts the angle's components right: shiftR( p,y,r ) = ( r,p,y ) (2 ops)
= shiftL( Rv1)
Shifts the angle's components left: shiftL( p,y,r ) = ( y,r,p ) (2 ops)
= inrange( Rv1, Rv2, Rv3)
Returns 1 if each component of A is between (or is equal to) the components of Amin and Amax (5 ops)
= :rotateAroundAxis( Axis, Degrees)
Returns the angle A rotated around vector V by N degrees (5 ops)
= toRad( Rv1)
Converts the angle's magnitude from radians to radians (5 ops)
= toDeg( Rv1)
Converts the angle's magnitude from radians to degrees (5 ops)
= :forward()
Gets the forward vector of the angle (5 ops)
= :right()
Gets the right vector of the angle (5 ops)
= :up()
Gets the up vector of the angle (5 ops)
= toString( A)
Gets the angle nicely formatted as a string "[P,Y,R]" (5 ops)
= :toString()
Gets the angle nicely formatted as a string "[P,Y,R]" (5 ops)