線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1566
推到 Plurk!
推到 Facebook!

arctan的用法!

答題得分者是:RaynorPao
黑輪
中階會員


發表:135
回覆:188
積分:64
註冊:2004-01-29

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-04-13 15:03:08 IP:140.124.xxx.xxx 未訂閱
 
    float denominator=1-slope_x[e]*slope_y[e];
    float numerator=2*slope_x[e];        angle_a[e]=0.5*ArcTan2(numerator/denominator) ;
我用上面的方式,可是出現 [C Error] Unit1.cpp(1664): E2193 Too few parameters in call to '_fastcall ArcTan2(long double,long double)' 這樣的訊息!! 要如何解決啊? 感謝大家哦~~
RaynorPao
版主


發表:139
回覆:3622
積分:7025
註冊:2002-08-12

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-04-13 15:24:16 IP:203.73.xxx.xxx 未訂閱
引言:
 
    float denominator=1-slope_x[e]*slope_y[e];
    float numerator=2*slope_x[e];        angle_a[e]=0.5*ArcTan2(numerator/denominator) ;
我用上面的方式,可是出現 [C++ Error] Unit1.cpp(1664): E2193 Too few parameters in call to '_fastcall ArcTan2(long double,long double)' 這樣的訊息!! 要如何解決啊? 感謝大家哦~~
黑輪 你好:
ArcTan2 這個函式應該要代入兩個參數吧?
ArcTan2
Calculates the arctangent angle and quadrant of a given number.    Unit    Math    Category    Trigonometry routines    extern PACKAGE Extended __fastcall ArcTan2(constExtended Y, const Extended X);    Description    ArcTan2 calculates ArcTan(Y/X), and returns an angle in the correct 
quadrant.  The values of X and Y must be between ?^64 and 2^64.  In 
addition, the value of X can急 be 0.  The return value will fall in 
the range from -Pi to Pi radians.
-- Enjoy Researching & Developing --
------
-- 若您已經得到滿意的答覆,請適時結案!! --
-- 欲知前世因,今生受者是;欲知來世果,今生做者是 --
-- 一切有為法,如夢幻泡影,如露亦如電,應作如是觀 --
黑輪
中階會員


發表:135
回覆:188
積分:64
註冊:2004-01-29

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-04-13 15:34:16 IP:140.124.xxx.xxx 未訂閱
哇~~真是不好意思~~沒看清楚~拿了就亂用 謝謝你哦~
系統時間:2024-05-18 16:00:32
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!