Function S2CellId.toS2Point

Returns the direction vector corresponding to the center of the given cell. The vector returned by ToPointRaw is not necessarily unit length. This method returns the same result as S2Cell.getCenter().

s2.util.math.vector.Vector!(double,3L) toS2Point() const;

The maximum directional error in ToPoint() (compared to the exact mathematical result) is 1.5 * double.epsilon radians, and the maximum length error is 2 * double.epsilon \(the same as Normalize\).