







The distance (or perpendicular distance) from a point to a line is the shortest distance from a fixed point to any point on a fixed infinite line in Euclidean geometry. It is the length of the line segment that joins the point to the line and is perpendicular to the line. The formula for calculating it can be derived and expressed in several ways.
Cartesian coordinate system
In geometry, a Cartesian coordinate system in a plane is a coordinate system that specifies each point uniquely by a pair of real numbers called coordinates, which are the signed distances to the point from two fixed perpendicular oriented lines, called coordinate lines, coordinate axes or just axes of the system. The point where the axes meet is called the origin and has (0, 0) as coordinates. The axes directions represent an orthogonal basis. The combination of origin and basis forms a coordinate frame called the Cartesian frame.
1,200 Miles by Train, From Singapore to Bangkok
A writer takes a weeklong journey, from the island city-state to the Thai capital, in the final days of a historic rail connection.

How can I find the smallest difference between two angles around a point?
Given a 2D circle with 2 angles in the range -PI -> PI around a coordinate, what is the value of the smallest angle between them? Taking into account that the difference between PI and -PI is no...

Equation of straight line
I know, $Ax + By = C$ is the equation of straight line but a different resource says that: $y = mx + b$ is also an equation of straight line? Are they both same?
Text rendering and effects using GPU-computed distances
Text rendering is cursed. Anyone who has worked on text will tell you the same; whether it's about layout, bi-directional, shaping, Unicode, or the rendering itself, it's never a completely solved problem. In my personal case, I've been working on trying to render text in the context of a compositing engine for creative content. I needed crazy text effects, and I needed them to be reasonably fast, which implied working with the GPU as much as possible. The distance field was an obvious requirement because it unlocks anti-aliasing and the ability to make many great effects for basically free.
Fast calculation of the distance to cubic Bezier curves on the GPU
Bézier curves are a core building block of text and 2D shapes rendering. There are several approaches to rendering them, but one especially challenging problem, both mathematically and technically, is computing the distance to a Bézier curve. For quadratic curves (one control point), this is fairly accessible, but for cubic (two control points) we're going to see why it is so hard.
Cosine similarity
In data analysis, cosine similarity is a measure of similarity between two non-zero vectors defined in an inner product space. Cosine similarity is the cosine of the angle between the vectors; that is, it is the dot product of the vectors divided by the product of their lengths. It follows that the cosine similarity does not depend on the magnitudes of the vectors, but only on their angle. The cosine similarity always belongs to the interval [ − 1 , + 1 ] . {\displaystyle [-1,+1].} For example, two proportional vectors have a cosine similarity of +1, two orthogonal vectors have a similarity of 0, and two opposite vectors have a similarity of −1. In some contexts, the component values of the vectors cannot be negative, in which case the cosine similarity is bounded in [ 0 , 1 ] {\displaystyle [0,1]} .
Nicole Feng
We introduce a method for approximating the signed distance function (SDF) of geometry corrupted by holes, noise, or self-intersections. The method implicitly defines a completed version of the shape, rather than explicitly repairing the given input. Our starting point is a modified version of the heat method for geodesic distance, which diffuses normal vectors rather than a scalar distribution. This formulation provides robustness akin to generalized winding numbers (GWN), but provides distance function rather than just an inside/outside classification. Our formulation also offers several features not common to classic distance algorithms, such as the ability to simultaneously fit multiple level sets, a notion of distance for geometry that does not topologically bound any region, and the ability to mix and match signed and unsigned distance. The method can be applied in any dimension and to any spatial discretization, including triangle meshes, tet meshes, point clouds, polygonal meshes, voxelized surfaces, and regular grids. We evaluate the method on several challenging examples, implementing normal offsets and other morphological operations directly on imperfect curve and surface data. In many cases we also obtain an inside/outside classification dramatically more robust than the one obtained provided by GWN.
Ontario Line
A 15.6-km subway line in Toronto that will run from Exhibition Place to Line 5 Eglinton.

Thomas Bloom on Twitter / X
Big news! (And not really my area, but yes, I would rank this as bigger than the unit distance counterexample. Maybe not bigger than a proof of unit distance would have been, but in terms of constructions, this is big.) https://t.co/VDRti1HZ6Z— Thomas Bloom (@thomasfbloom) August 1, 2026
12-mile Middle Earth Hexmap
I've been re-reading the Hobbit & Lord of The Rings this year, so naturally my latest cartographic hyperfixation was to make a map of Tolkien's paracosm. ...

Bus Stop Balancing
One of the simplest and most cost-effective ways to speed up bus trips is by extending the average distance between bus stops, otherwise known as bus stop balancing.

Shrinking blob speeds traveling salesman on his way
(Phys.org) —What is the shortest route that a traveling salesman must take to visit a number of specified cities in a tour, stopping at each city once and only once before returning to the starting point? ...

Packing The World For Longest Lines Of Sight
I have a side project to find the longest line of sight on the planet1 using a novel Total Viewshed algorithm. At a resolution of 3 arc-seconds (~92m x 92m), the planet contains around 4.5 billion elevation samples2. Now obviously we don’t need to calculate the visibility between literally every single one of those, so how do we begin to cut it up? That’s what I’ll explore in this post.
Say hello to at://wormhole 🕳️ It’s an Apple Shortcut for iOS/MacOS that let’s you instantly travel between Bluesky clients, ATProto services, or PDS explorers while maintaining your relative position in terms of the data you're trying to view. Download it here: dame.is/creating/shortcuts/wormhole