Primitives2D

2D core primitives

class volmdlr.Vector2D
frame_mapping

side = ‘old’ or ‘new’

norm
Returns:norm of vector
normalize

normalize the vector modifying its coordinates in place

translation
Parameters:offset – an other Vector2D
class volmdlr.Point2D
class volmdlr.Basis2D

Defines a 2D basis :param u:Vector2D: first vector of the basis :param v:Vector2D: second vector of the basis

normalize

normalize the basis modifying its coordinates in place

class volmdlr.Frame2D

Defines a 2D basis :param origin:Point2D: origin of the basis :param u:Vector2D: first vector of the basis :param v:Vector2D: second vector of the basis

2D advanced primitives