Point3d to Vector2d conversion

is there any way to convert an array of point3d (same plane) to vector2d objects?

array.map { |pt| Geom::Vector2d.new(*pt.to_a[0..1]) } is the best I can come up with.

2 Likes