xforms for Chaotica
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
789 B

<?xml version="1.0" encoding="utf-8"?>
<transform_def name="bender">
<!-- made by Crystalize -->
<node name="input_params">
<real name="bender" >1</real>
<real name="bender_x" >1</real>
<real name="bender_y" >0</real>
<node name="internal_params">
<real name="weight" />
<real name="ex" />
<real name="wy" />
<string name="winter_init_function">
bender_init_result(bender, bender_x, bender_y)
<string name="winter_eval_function">
x = halfpi() * p_in.x
y = halfpi() * p_in.y
matrix = mat2x2(sinh(y) * wy, cosh(x) * ex,
-cosh(x) * ex, sinh(y) * wy)
(matrix * p_in) * weight