compas_vector_from_occ_vector2d

compas_occ.conversions.compas_vector_from_occ_vector2d(vector, cls=None)[source]

Construct a COMPAS vector from an OCC 2D vector.

Parameters
  • vector (gp_Vec2d) – The OCC vector.

  • cls (Type[Vector], optional) – The type of COMPAS vector.

Returns

Vector