OsApproxEquals

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 10: Line 10:
 
integer osApproxEquals(rotation ra, rotation rb, float margin)
 
integer osApproxEquals(rotation ra, rotation rb, float margin)
 
|ossl_example=
 
|ossl_example=
|description=returns true (1) if the quantities or all their components do not differ by the margin value or 1e-6 if margin is not provided
+
|description=returns true (1) if the quantities or all their components do not differ by the margin value, or 1e-6, if margin is not provided. Returns false (0) otherwise.
 
  |additional_info=Implemented November 20, 2018
 
  |additional_info=Implemented November 20, 2018
 
}}
 
}}

Revision as of 13:43, 20 February 2019

integer osApproxEquals(float a, float b)

integer osApproxEquals(float a, float b, float margin)
integer osApproxEquals(vector va, vector vb)
integer osApproxEquals(vector va, vector vb, float margin)
integer osApproxEquals(rotation ra, rotation rb)
integer osApproxEquals(rotation ra, rotation rb, float margin)

returns true (1) if the quantities or all their components do not differ by the margin value, or 1e-6, if margin is not provided. Returns false (0) otherwise.
Threat Level None
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Notes
Implemented November 20, 2018
Personal tools
General
About This Wiki