Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
coordinate
- Page 1
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by toneewa
… negative, and also infinite recursion. I added a x/y
coordinate
display for a ball, and tinkered with the placement of…
Coordinate Sorting Program almost working - need array help
Programming
Software Development
11 Years Ago
by Danja
…// asks for the angular tolerance within which to delete interior
coordinate
pairs double GetSliceSize() { double x; cout <<…] = -100;} } //Swap latitude and longitude. Put the
coordinate
with the lowest distance NEXT TO coordiante[i]. array_temp = Atan…
Re: Coordinate Sorting Program almost working - need array help
Programming
Software Development
11 Years Ago
by Banfa
…class
coordinate
{ public: // Constructors etc
coordinate
();
coordinate
(double lat, double lon);
coordinate
(const
coordinate
& cpy); ~
coordinate
(); …double longitude; }; std::vector<
coordinate
> coordList; Then pass the …
Re: Coordinate Sorting Program almost working - need array help
Programming
Software Development
11 Years Ago
by mike_2000_17
…lt; Z_temp_new) { // Invalidate the i-1
coordinate
: latitude[i-1] = 0; longitude[i-1…; } if (Z_temp_new < Z_temp_old) { // Invalidate the Lowest_Pos
coordinate
: latitude[Lowest_Pos] = 0; longitude[Lowest_Pos] = 0; Atan[Lowest_Pos]…
Re: coordinate adding program
Programming
Software Development
11 Years Ago
by mrnutty
…for simplicity right now. class
Coordinate
{ //declare a class named
Coordinate
private: float x; //has…,Y,Z) which is default //initialized to 0
Coordinate
(float X = 0, float Y = 0, …; << endl; } }; int main(){
Coordinate
c1;
Coordinate
c2(1,2,3); cout <<"c1…
coordinate adding program
Programming
Software Development
11 Years Ago
by jorge.carmonajr
… header file #include<iostream> using namespace std; class
Coordinate
{ private:
Coordinate
double a(int = 0, int = 0, int = 0); //to… assign value to
Coordinate
double b(int = 0, int = 0, int = 0); //coordinates public…
Coordinate system in c# and other programming languages
Programming
Software Development
10 Years Ago
by castajiz_2
… the graphics class at college my professor said that the
coordinate
system is reversed in programming that means that the Y… reason is because i am stil not sure how this
coordinate
system works in programming and by the way Why is…
Re: Coordinate System Library?
Programming
Software Development
15 Years Ago
by StuXYZ
Sorry I am not sure that boost has anything that you really want. [I can always be wrong about boost it is HUGE] But the Gnu scientific library, has the structure for
coordinate
transforms (all the matrix stuff + differentuals). And the octave library, (which needs a little care to extract) has a host of
coordinate
transforms.
Coordinate System Library?
Programming
Software Development
15 Years Ago
by daviddoria
Anyone know a good, simple set of classes to do thing like cartesian to spherical conversion,
coordinate
system transformations, etc? I wrote some of this stuff, but my code keeps breaking because of "special cases" that I have not handled. I just want to be able to use this stuff and not worry about it. Suggestions? Thanks, Dave
Re: Coordinate System Library?
Programming
Software Development
15 Years Ago
by skatamatic
… of classes to do thing like cartesian to spherical conversion,
coordinate
system transformations, etc? I wrote some of this stuff, but…
Coordinate offset and heading
Programming
Software Development
11 Years Ago
by giancan
… me to do it easily? Thanks in advance, G. PS:
coordinate
system is not important now, meaning that I can change…
Re: Coordinate offset and heading
Programming
Software Development
11 Years Ago
by giancan
Wow, it looks good... but unfortunately me maths skills are quite low...it will take me a couple of hours to convert it for my purposes. How will I get to the new line
coordinate
?
help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by jorge.carmonajr
…(double, double, double);
Coordinate
operator+(const
Coordinate
&) const;
Coordinate
operator-(const
Coordinate
&) const;
Coordinate
operator*(const
Coordinate
&) const;
Coordinate
operator=(const
Coordinate
&) const; bool…
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by Despairy
…, double, double);
Coordinate
operator+(const
Coordinate
& a) const;
Coordinate
operator-(const
Coordinate
&) const;
Coordinate
operator*(const
Coordinate
&) const;
Coordinate
operator=(const
Coordinate
&) const; bool…
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by ravenous
… not quite. Yes, you need to add something, but this:
Coordinate
::
Coordinate
(double, double, double) { double x = 0.0; double y = 0… set the values in both cases:
Coordinate
::
Coordinate
() : x(0), y(0), z(0) {} // Default construction
Coordinate
::
Coordinate
( double x_in, double y_in, double z_in…
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by ravenous
… this function: istream &operator>>(istream &input,
Coordinate
&) { input << endl; return input; } This will also…
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by Despairy
Here's an example of your mistake:
Coordinate
Coordinate
::operator+(const
Coordinate
&) { return
Coordinate
(x + a.x , y + a.y, z + a.z); } Should… the "a" and the const** )
Coordinate
Coordinate
::operator+(const
Coordinate
& a)const { return
Coordinate
(x + a.x , y + a.y, z…
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by jorge.carmonajr
i see so would i write something like
Coordinate
::
Coordinate
(double, double, double) { double x = 0.0; double y = 0.0 double z = 0.0 } in the
Coordinate
.cpp file above the overloaded operators?
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by jorge.carmonajr
also i noticed i did not write a function for the overloaded = operator. would that look like this
Coordinate
::
Coordinate
operator=(const
Coordinate
&) const { x =
Coordinate
.x y =
Coordinate
.y z =
Coordinate
.z }
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by ravenous
… some problems). I could have called them pretty much anything:
Coordinate
::
Coordinate
( double ss127hssqh_32s, double daediun78230__, double sozcjne ) would have worked just… to give the function argument a name. You have:
Coordinate
::
Coordinate
operator=(const
Coordinate
&) const but you haven't give a name…
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by jorge.carmonajr
…put const
Coordinate
&
Coordinate
::operator=(const
Coordinate
& a) { x = a.
Coordinate
; //most trouble here y = a.
Coordinate
; // z = a.
Coordinate
; //… invalid use of `class
Coordinate
'
Coordinate
.cpp:38: error: invalid use of `class
Coordinate
'
Coordinate
.cpp:39: error: invalid…
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by jorge.carmonajr
should i just copy the errors on to here or just sum them up? and so for the istream and ostream i am lost on how to use any tips or thoughts? and fot the != operator would it be something like `return !(this->operator == (
Coordinate
&));`
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by jorge.carmonajr
… the code out it gives the error undefined reference to '
Coordinate
::
Coordinate
(double, double, double)' on pretty much every overloaded operator. should…
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by ravenous
You've declared the `
Coordinate
::
Coordinate
(double, double, double)` constructor. But you haven't provided a …
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by ravenous
… compiler's right, this is indeed an invalid use of `
Coordinate
`. Think about what you want the program to do. `a…` is a `
Coordinate
` and you want to assign its `x` value to the…
Re: help with coordinate adding program(classes)
Programming
Software Development
11 Years Ago
by jorge.carmonajr
… the name used to call the asignment operator. then the
coordinate
part was just to show that it goes in the… class
coordinate
. And I meant that when you initiate x_in and so…
Re: Windows Coordinate System Oddity
Hardware and Software
Microsoft Windows
1 Year Ago
by Reverend Jim
…microsoft.com/en-us/windows/win32/gdi/window-
coordinate
-system) >The
coordinate
system for a window is based on … on the screen are described by x- and y-
coordinate
pairs. The x-coordinates increase to the right; y…. Client coordinates ensure that an application can use consistent
coordinate
values while drawing in the window, regardless of the…
Mouse click get coordinate and draw line
Programming
Software Development
13 Years Ago
by joemalaya
Hello guys, how to track the mouse click
coordinate
inside the form , save it to listbox or variable. Right now i am using checkbox method which already specify the
coordinate
. I attach the image to illustrate my program
XY coordinate plane - c++
Programming
Software Development
13 Years Ago
by prgmwitch
…, I'm working on a program that requires an XY
coordinate
plan and I can't seem to find a source…;." or "+" or anything at a certain xy
coordinate
on the screen. for instance, I need to be able…
Converting GL units into windows coordinate ??
Programming
Software Development
12 Years Ago
by pcgamer2008
… I click on that particular area..mouse click generates windows
coordinate
like (200,349). It's hard to sense the mouse…....so how can I convert the GL units into windows
coordinate
. Plz help me.....I know the logics regarding game projects…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC