Plane and 3D Line Equation Calculator

Add points, lines and planes, get their equations in every form, and see each pairwise intersection, angle and distance with exact square roots and a 3D sketch.

ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ

…

วิธีทำ

  1. 1
    Add objects

    Use + Point, + Line or + Plane, or load an example.

  2. 2
    Choose the definition

    Pick two points, point and direction, three points, normal or equation.

  3. 3
    Type the numbers

    Fill the coordinate boxes; fractions are kept exact.

  4. 4
    Read the equations

    Check each object's forms and construction steps.

  5. 5
    Open the pairs

    See intersections, angles and distances with the working.

  6. 6
    Export

    Copy the results, download CSV, or print with the sketch.

เกี่ยวกับเครื่องมือนี้

Problems about lines and planes in three dimensions look simple but involve a long chain of small calculations: subtract points to get direction vectors, take a cross product for a normal, substitute a parametric line into a plane equation, and divide by a length that brings in a square root. Get one sign wrong and the distance or intersection point is off. This calculator works with a list of objects instead of one fixed problem. Add as many points, lines and planes as you need and define each in the way your question gives it: a line through two points or through a point with a direction, a plane through three points, through a point with a normal, or as ax + by + cz = d. For every object the tool writes its equations. Lines appear in vector, parametric and symmetric form, and planes in scalar form with whole-number coefficients. For every pair of objects it works out the relationship automatically: the distance between points, the foot of the perpendicular from a point to a line or plane, the mirror image of a point, where a line meets a plane, the line where two planes meet, whether two lines intersect, are parallel or are skew, and the angle in each case. Distances are exact surds such as 5√3/3 with a decimal beside them, and an isometric sketch shows the scene.

Defining the objects

Each object has a name, a type and a row of boxes. A plane through three points needs the three points not to lie on one line; the tool checks this by testing whether the cross product of the two edge vectors is zero. A plane given as ax + by + cz = d gets a representative point, the point of the plane closest to the origin, so it can be drawn and used in distance formulas.

The pair calculations

Point and point: distance and midpoint. Point and line: the parameter t of the foot of the perpendicular, the foot itself and the distance. Point and plane: the signed value n·P − d, the distance |n·P − d|/|n|, the foot and the mirror image. Line and plane: the intersection by substituting r(t) into the plane equation, or parallel or contained if n·v = 0, and the angle φ with sin φ = |n·v|/(|n||v|). Plane and plane: the direction n1 × n2 and a common point of the line of intersection, or the distance between parallel planes. Line and line: intersecting, parallel, coincident or skew, using the cross product of the directions and the triple product, with the shortest distance between skew lines.

Exact answers

Coordinates may be fractions. The tool keeps them exact, simplifies square roots, and rationalizes denominators, so a distance of 3/√10 is written 3√10/10.

Worked example

Load the first example: plane π through (1, 0, 0), (0, 1, 0) and (0, 0, 1), point P = (1, 2, 3) and line L through the origin and (1, 2, 3). The edge vectors are (−1, 1, 0) and (−1, 0, 1), their cross product is the normal (1, 1, 1), and π is x + y + z = 1. For P and π, n·P − d = 5 and |n|² = 3, so the distance is 5/√3 = 5√3/3 ≈ 2.886751, the foot is (−2/3, 1/3, 4/3) and the mirror image is (−7/3, −4/3, −1/3). Substituting L into π gives 6t = 1, so t = 1/6 and L meets π at (1/6, 1/3, 1/2) at an angle of about 67.7923°. P lies on L, so their distance is 0.

Limits

The sketch is a schematic isometric view, not a scale drawing, and planes are shown as a square patch. Inputs must be numbers or fractions; symbolic parameters are not supported. Angles are given in degrees to four decimal places.

ตัวอย่างพร้อมวิธีทำ

Plane through (1,0,0), (0,1,0), (0,0,1): x + y + z = 1; distance from (1, 2, 3) is 5√3/3; line to (1, 2, 3) meets it at (1/6, 1/3, 1/2).

สรุปสั้น ๆ

คำถามที่พบบ่อย

How do I find the equation of a plane through three points?

Subtract the first point from the other two to get two edge vectors, take their cross product for the normal (a, b, c), and set d = a·x1 + b·y1 + c·z1. The tool shows each of these lines.

How is the distance from a point to a plane found?

Substitute the point into ax + by + cz − d and divide the absolute value by √(a² + b² + c²). The tool also gives the foot of the perpendicular and the reflection of the point.

How do I tell if two lines are skew?

If their directions are not parallel and the triple product (P2 − P1)·(v1 × v2) is not zero, the lines never meet. The tool then gives the shortest distance between them.

What is the angle between a line and a plane?

It is 90° minus the angle between the line's direction and the plane's normal, so sin φ = |n·v|/(|n||v|). A line parallel to the plane has angle 0.

What forms of a line equation does it give?

Vector form r(t) = P + t·v, parametric equations for x, y and z, and symmetric form. When a direction component is zero, that coordinate is written as a fixed value.

Can I save a set of objects?

Yes. Your list is saved in this browser with undo and redo. Export file writes it to JSON, and the results can be copied, downloaded as CSV or printed.

ฟรีทั้งหมดไม่มีค่าใช้จ่าย ไม่ต้องสมัคร
ไฟล์เป็นส่วนตัวทุกอย่างทำงานในเบราว์เซอร์ของคุณ
ใช้ง่ายในภาษาของคุณมีหลายภาษา