Module point

Source
Expand description

S2 Point

Structsยง

S2Point
An S2Point represents a point on the unit sphere as a 3D vector. Usually points are normalized to be unit length, but some methods do not require this. See util/math/vector.h for the methods available. Among other things, there are overloaded operators that make it convenient to write arithmetic expressions (e.g. (1-x)p1 + xp2). NOTE: asumes only f64 or greater is used.