Brian Dunning's FileMaker Custom Functions

Rot ( p ; phi )

Rotate point p by phi counterclockwise round the origin

  Average rating: 4.2 (28 votes) Log in to vote

Christoph Ivo Mattle   Christoph Ivo Mattle
ComputerPunkt AG
http://computerpunkt.ch

Share on Facebook Share on Twitter

  Sample input:
//3 samples
"10|0" ; 56
"0|-2" ; 120
"-400|0"; 200

  Sample output:
/
"5.5919|8.2904"
"1.7321|1"
"375.877|136.8081"

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Rotate point p by phi counterclockwise round the origin.
p is (x y)'. "|" separates the values.
phi is the angle in degrees.
The result is (x1 y1)' likewise with "|".

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: