CVBpy 15.0
Loading...
Searching...
No Matches

Multi-purpose 2D vector class. More...

Public Member Functions

None Vector2D (self, float x=0.0, float y=0.0)
 Creates a point.
 

Properties

 length = property
 float: Get or set the length of the vector represented by this point object.
 
 phi = property
 cvb.Angle: Get or set the orientation of the vector represented by this point object.
 
 x = property
 float: Gets or sets the x-component of the point.
 
 y = property
 float: Get or set the y-component of the point.
 

Detailed Description

Multi-purpose 2D vector class.

Constructor & Destructor Documentation

◆ Vector2D()

None Vector2D ( self,
float x = 0.0,
float y = 0.0 )

Creates a point.

Parameters

x : float Data to initialize with.

y : float Data to initialize with.