Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

895 B
Raw Blame

ParametrizedLine.point_at on an unbatched (D,) line reads an (N,) t as N steps and returns (N, D) points, as it already did for (N, 1). For D > 1 it used to multiply the steps with the direction element-wise, which returned one wrong point when N equalled D and raised for any other N but 1; for D = 1 it returned the N points flattened to (N,), now (N, 1). intersect on an unbatched line with a batch of M planes therefore returns (M, 3) points; it used to raise, or return one wrong point for M = 3. A one-element (1,) t, and a batch of one plane, now give the same point with shape (1, D) instead of (D,), matching the shape of t or of the returned lambda. line[i] now returns the origin for 0 and -2, the direction for 1 and -1, and raises IndexError for any other index; it used to return the direction for every index but 0.