# Point Cloud Attribute Calculator

Volker Wichmann (c) 2010, LASERDATA GmbH
The Point Cloud Attribute Calculator calculates a new attribute based on existing attributes and a mathematical formula. The attribute fields are referenced by characters 'a' to 'z' with 'a' referencing the first field, 'b' the second field and so on. Please note that the first three fields contain the x,y,z coordinates.
This (meaningless) example calculates the sine of the x coordinate and multiplies it with the z coordinate: sin(a) * c
The following operators are available for the formula definition:
+ Addition
- Subtraction
* Multiplication
/ Division
^ power
abs(x) - absolute value
sqrt(x) - square root
ln(x) - natural logarithm
log(x) - base 10 logarithm
exp(x) - exponential
sin(x) - sine
cos(x) - cosine
tan(x) - tangent
asin(x) - arcsine
acos(x) - arccosine
atan(x) - arctangent
atan2(x, y) - arctangent of x/y
gt(x, y) - if x>y the result is 1.0, else 0.0
lt(x, y) - if x<y the result is 1.0, else 0.0
eq(x, y) - if x=y the result is 1.0, else 0.0
mod(x, y) - returns the floating point remainder of x/y
ifelse(c, x, y) - if c=1 the result is x, else y
int(x) - integer part of floating point value x
pi() - returns the value of Pi

## Parameters

Point Cloud
Input Point Cloud
  Input
Result
Output Point Cloud
  Output
Formula
Text
Output Field Name
Text
Field data type
Choice
  Available choices: 1 bit, 1 byte unsigned integer, 1 byte signed integer, 2 byte unsigned integer, 2 byte signed integer, 4 byte unsigned integer, 4 byte signed integer, 4 byte floating point, 8 byte floating point