Welcome to %s forums

BrainModular Users Forum

Login Register

FastScript - Sin/Cos not acting as expected

I need help on a Patch
Post Reply
sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 20 Nov 2013, 22:14

I have a FastScript and I am playing around working on geometric figures...and I am having issues with sin/cos.

I am thinking this possibly has to do with floating point values, but I am completely unsure.

I am basically just doing a comparison with windows calculator and hollyhock seeing the results they seem way off.

Any advice, or similar issues?
"Every act of creation is first an act of destruction." -Picasso

ynohtna
Member
Posts: 36
Location: Brighton, UK
Contact:

Unread post by ynohtna » 21 Nov 2013, 12:12

Are your values in degrees or radians? Sin and Cos expect the inputs to be in radians (i.e. where 2π is a full rotation).

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 21 Nov 2013, 12:39

aha, that might make life simpler. I was wondering why when I went the full 360 (also things went wacko past 180) the associated values did not seem to hold their meaning as tight. I figured the differences between sin and cos was because the float, but even when trying to make an association of the value with it's counterpart I had issue. Thank you soo much ynohtna!
"Every act of creation is first an act of destruction." -Picasso

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests