Difference between revisions of "ObjectType:math"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
== Description ==
 +
 +
 
== Members ==
 
== Members ==
 
* [[DataType:float|float]] '''Abs['''formula''']''': Returns the absolute value of a given formula
 
* [[DataType:float|float]] '''Abs['''formula''']''': Returns the absolute value of a given formula
Line 16: Line 19:
 
* [[DataType:float|float]] '''Distance['''x1,y1,z1,x2,y2,z2''']''': Returns the 3-dimensional distance between x1,y1,z1 and x2,y2,z2
 
* [[DataType:float|float]] '''Distance['''x1,y1,z1,x2,y2,z2''']''': Returns the 3-dimensional distance between x1,y1,z1 and x2,y2,z2
 
* [[DataType:float|float]] '''Sqrt['''formula''']''': Returns the square root of a given formula
 
* [[DataType:float|float]] '''Sqrt['''formula''']''': Returns the square root of a given formula
 +
 +
== Returns ==
 +
[[LavishScript:NULL|NULL]]
  
 
== Examples ==
 
== Examples ==

Revision as of 06:38, 22 February 2005

Description

Members

  • float Abs[formula]: Returns the absolute value of a given formula
  • int Rand[#]: Returns a random number from 0 to #-1
  • float Calc[formula]: Returns the result of a given formula
  • float Sin[formula]: Returns the sine of a given formula in degrees
  • float Cos[formula]: Returns the cosine of a given formula in degrees
  • float Tan[formula]: Returns the tangent of a given formula in degrees
  • float Asin[formula]: Returns the asin of a given formula in degrees (asin(sin(x))=x)
  • float Acos[formula]: Returns the acos of a given formula in degrees (acos(sin(x))=x)
  • float Atan[formula]: Returns the atan of a given formula in degrees (atan(sin(x))=x)
  • string Hex[#]: Returns a hexadecimal string equivalent to the #
  • int Dec[hex]: Returns the decimal equivalent to the hexadecimal value given
  • int Not[#]: Returns the bitwise NOT of the #
  • float Distance[x1,x2]: Returns the 1-dimensional distance between x1 and x2
  • float Distance[x1,y1,x2,y2]: Returns the 2-dimensional distance between x1,y1 and x2,y2
  • float Distance[x1,y1,z1,x2,y2,z2]: Returns the 3-dimensional distance between x1,y1,z1 and x2,y2,z2
  • float Sqrt[formula]: Returns the square root of a given formula

Returns

NULL

Examples

See Also