CVBpy 14.1
Point3DH Class Reference

Multi-purpose 3D vector class (homogeneous). More...

Inherits object.

Public Member Functions

cvb.Point3DC create (cvb.Point3D point3d)
 Creates a 3D point with w component. More...
 
cvb.Point3DC create (float x=0.0, float y=0.0, float z=0.0, float w=1.0)
 Creates a 3D point with confidence. More...
 
None normalize (self)
 Normalize the x-, y-, and z- with the w-component.
 

Properties

 w = property
 float: Gets or sets the w-component of the point.
 
 x = property
 float: Gets or sets the x-component of the point.
 
 y = property
 float: Gets or sets the y-component of the point.
 
 z = property
 float: Gets or sets the z-component of the point.
 

Detailed Description

Multi-purpose 3D vector class (homogeneous).

Supports the same arguments as cvb.Point3DH.create.

Parameters

*args : Any Parameters like cvb.Point3DH.create.

**kwargs : Any Parameters like cvb.Point3DH.create.

Member Function Documentation

◆ create() [1/2]

cvb.Point3DC create ( cvb.Point3D  point3d)

Creates a 3D point with w component.

Parameters

point3d : cvb.Point3D 3D Point with x-, y- and z-component.

Returns

cvb.Point3DC A 3D point with w component.

◆ create() [2/2]

cvb.Point3DC create ( float   x = 0.0,
float   y = 0.0,
float   z = 0.0,
float   w = 1.0 
)

Creates a 3D point with confidence.

Parameters

x : float Data to initialize with.

y : float Data to initialize with.

z : float Data to initialize with.

w : float Data to initialize with.

Returns

cvb.Point3DC A 3D point with w component.