I have an irregular polygon that needs to be divided by an intersecting line(dynamic). I have calculated the area of a polygon using shoe lac formulae but I am not able to understand how to get the area when it is divided by an intersection line (the line will be drawn dynamically on the irregular ..
I’ve been looking all over the web to find anyone who might have made a program to do this. it’s supposed to have an inheritance in the format of class shape class line:: public shape class verticalline :: public line class horizontalline :: public line class triangle :: public shape class parallelogram :: public shape ..
I am about to enroll for a course in programming, so I was given this task as a challenge (OOP-related) and for my own knowledge. I can’t even wrap around where to begin. I have searched up similar questions but am still slow and very lost. I apologize for the code because it is embarrassingly ..
I’m trying to make a function for my Unreal Engine project, that will take in a UV coordinate as the centre point of a circle, the radius of the circle in pixel space and the resolution of the texture, and using this information generate an array of UV coordinates in the circle. As I’m trying ..
I am trying to calculate the intersection area of two arbitrarily sized and rotated rectangles using C++. I have found some information on non-rotated rectangles but very little on rotated and different sized rectangles. I would like to create a C/C++ program to do this. Does anyone out there have any information/hints or better yet, ..
Write a function that asks the user to enter the radius of the circle and then returns that number as a double. Write another function that takes this radius as input and returns the area of circle. how to write this function ?? Source: Windows Que..
I am a newbie in c++ and I am quite confused in programmer – defined functions. It shows these errors 40 [Error] cannot convert ‘double’ to ‘double(double, double)’ in assignment 40 [Error] assignment of function ‘double total_area(double, double)’ I cannot enter total_area = cross_area + side_area; If i try to remove the double, it results ..
I wrote a program calculating the field and perimeter of the rectangle. In the program I need to use static fields (teacher’s recommendation) and the whole program must be written in object-oriented way.The program gets such values as: owner’s data, length, width and ID correctly – however, the problem is in the field and perimeter ..