API Reference > OdGe Classes > OdGeVector3d Class > OdGeVector3d Methods > set Method > OdGeVector3d::set Method (OdGePlanarEnt&, OdGeVector2d&)
OdGeVector3d::set Method (OdGePlanarEnt&, OdGeVector2d&)
Syntax
C++
OdGeVector3d& set(const OdGePlanarEnt& plane, const OdGeVector2d& vect);
Parameters 
Description 
const OdGePlanarEnt& plane 
[in] Any plane. 
const OdGeVector2d& vect 
[in] Any 2D vector.  

Sets this vector to the specified arguments, and returns a reference to this vector. 

 

When called with plane and vector, constructs the 3D vector correspoponding to the 2D vector in the coordinates of the plane: 

uAxis * vect.x + vAxis * vect.y 

where uAxis and vAxis are returned by 

plane.get(origin, uAxis, vAxis) 

The 3D vector will be parallel to the 2D vector.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.