home *** CD-ROM | disk | FTP | other *** search
- // trigX.cpp : Implementation of CtrigX
- #include "stdafx.h"
- #include "ATLtrigX.h"
- #include "trigX.h"
-
- #include <math.h>
-
- /////////////////////////////////////////////////////////////////////////////
- // CtrigX
-
- STDMETHODIMP CtrigX::ATLsinX(double x, double * r)
- {
- *r = sin(x);
- return S_OK;
- }
-
- STDMETHODIMP CtrigX::ATLcosX(double x, double * r)
- {
- *r = cos(x);
- return S_OK;
- }
-
- STDMETHODIMP CtrigX::ATLtanX(double x, double * r)
- {
- *r = tan(x);
- return S_OK;
- }
-