It looks like the only way to approach geomatry expression from javascript is Math object.
but I can’t express 3cos(30) although cos(30) can be expressed as Math.cos(30).
how can I express 3cos(30) in javascript?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Does
3cos(30)mean three times the cosine of 30? In that case, you can compute it like this:Edit: Note that
cos()expects it parameter to be in radians, not degrees.