How to get the coordinates inside

  • Thread starter sarah22
  • Start date
  • Tags
    Coordinates
In summary, to get the coordinates inside a square, triangle, circle, or oval, you can use the equations of the corresponding shapes and test if a given point satisfies the inequality. For a triangle or square, you will need to test the inequalities of the intersecting half-planes, while for a circle or oval, you can use the single inequality for the shape's equation.
  • #1
sarah22
26
0
What's the formula on how to get the coordinates inside of:
a) Square
b) Triangle
c) Circle
d) Oval

I tried the formula here, for triangle, (http://2000clicks.com/mathhelp/GeometryPointAndTriangle3.htm ) but sometimes even though the point is inside it says it is not.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
A half-plane is given by an equation of the form [tex]xn_x+yn_y-d\ge 0[/tex] where [tex](n_x,n_y)[/tex] is the inward pointing normal vector of the boundary line, and [tex]d=p_xn_x+p_yn_y[/tex], where [tex](p_x,p_y)[/tex] is a point on the boundary.

To test if a point is inside the half-plane, you only need to check the above inequality.

Since a triangle (resp. a square) is the intersection of 3 (resp. 4) half-planes, you just need to figure out their equations and do the test for each one.

For an ellipse of the form [tex]ax^2+by^2-c=0[/tex], the corresponding inequality for the points inside it is [tex]ax^2+by^2-c\le 0[/tex].
 

1. What is the meaning of coordinates in science?

Coordinates in science refer to a set of numbers or values that specify the location of a point or object in a particular system or space. They are used to describe the position and orientation of objects in a given reference frame.

2. How do you determine the coordinates of a point?

The coordinates of a point can be determined by using a coordinate system, such as Cartesian coordinates, polar coordinates, or geographic coordinates. The coordinates are usually represented by a set of numbers or values that correspond to the position of the point along the axes of the coordinate system.

3. What is the difference between latitude and longitude coordinates?

Latitude and longitude coordinates are two types of geographic coordinates used to locate points on Earth's surface. Latitude measures the distance north or south of the equator, while longitude measures the distance east or west of the prime meridian.

4. How do you convert coordinates from one system to another?

To convert coordinates from one system to another, you need to know the mathematical relationship between the two systems. For example, to convert from Cartesian coordinates to polar coordinates, you can use the equations x = r cosθ and y = r sinθ, where r is the distance from the origin and θ is the angle from the positive x-axis.

5. Why are coordinates important in scientific research?

Coordinates are essential in scientific research because they allow scientists to accurately locate and describe the position of objects or phenomena in a given system or space. This information is crucial for making observations, collecting data, and conducting experiments, which are all essential components of scientific research.

Similar threads

  • Differential Geometry
Replies
0
Views
619
  • Special and General Relativity
Replies
34
Views
758
  • Differential Geometry
Replies
12
Views
3K
Replies
10
Views
1K
  • Differential Geometry
Replies
7
Views
2K
  • General Math
Replies
3
Views
2K
Replies
2
Views
1K
Replies
8
Views
1K
Replies
40
Views
2K
Replies
5
Views
1K
Back
Top