It is known as circumference to the closed line of format curved and flat appearance in which points are equidistant from the point central which is located on the same plane. This distance that separates the set of points and the central area is known as radio, while the line segment that makes up a pair of aligned radii is called diameter.
The diameter, as has been determined, is the largest distance that can be established between two points that belong to the same circumference. The length of this diameter, on the other hand, is twice the length of the radius.
Analyzing a circumference
Other elements that can be recognized when examining a circumference are the arc (such the name given to the curved segment of points that makes up every circumference), the rope (that is, the segment which guarantees the union of two points), the tangent line (which makes contact at a single point) and the secant line (which marks contact in a couple of points).
In relation to the relative positions of the points with respect to the circumference, it must be said that a point can be inside (with respect to which the distance from the central zone to the point is smaller than the measure of the length of the radius), belonging (where the extent that separates the center of the point coincides with the length of the radius) or Exterior (where the separation between the center and the point exceeds the length of the radius).
The differences with the circle
Although in everyday language they are usually used as synonyms, it should be noted that circumference and circle they do not mean the same thing. The circle, says the theory, is the geometric space based on the points that are part of a circle: this means that the circle constitutes the perimeter of a circle.
The notion of circumference, therefore, is also used to name the contour of a certain surface, area or terrain. For example: “The fencing allows keeping the animals within the circumference of our property”.
Using Circles in Graphical Programming
In video games, as well as other types of Applications interactive graphics, it is necessary to tell the processor what is the limit of the objects that are observed on the screen, to avoid overlapping. A clear example is a character who runs through a labyrinth and, when walking against a wall, cannot go through it. For people who do not have any technical knowledge related to this topic, it can be difficult to understand that the program does not know that “a wall is solid and it is not possible to pass through it”. But it is necessary to remember that, as they say in everyday speech, for a computer everything is “ones and zeros”; that is, he does not understand the characteristics of bodies, nor the concepts of physics or mathRather, it simply slaves everything that is instructed to it.
To prevent an object from passing through a wall, for example, the so-called collision systems, although its name may vary depending on the developer and the language. Basically, it is a series of conventions and functions that establish how many types of interaction exist within the universe of the game and what consequence each case has. When implemented, what was once a series of graphics without properties becomes a world that can be explored by walking, jumping, climbing, swimming, climbing stairs and passing through narrow tunnels.
Traditionally, the most commonly used collision types in video games are squares and circles, each one with characteristics and different purposes. It should be mentioned that they do not necessarily represent an object or being in a similar way, but the decision to choose one or the other depends more on the type of interaction that this element will have with the environment. If you want to delimit the body of a character such as Super Mario in a game in which the action takes place in 2 dimensions (the camera moves sideways and not “to and from the screen”), probably the most appropriate option It is a rectangle, the longest sides of which will represent the height of the famous plumber, while the remaining two, both its width and depth, since it is a flat image.
At first glance, a human being does not have the shape of a rectangle, and depending on the degree of complexity, it is possible to use as many figures as desired to represent their limits. A circumference could well be used for your head and hands, and rectangles for the rest of your body parts. The advantage of the circumference is that it allows very precise calculations of possible collisions coming from all directions without demanding much work from the processor and always carrying out the same check: if the distance between a certain point of an external object and the center of the circumference is equal to or less than the radius, then they are making contact.