API Reference > OdIfc Namespace > Classes > OdIfcEntity Class > OdIfcEntity Methods > OdIfcEntity::asVector2d Method
OdIfcEntity::asVector2d Method
Syntax
C++
static const OdGeVector2d* asVector2d(const OdIfcEntity * pEnt);
Parameters 
Description 
const OdIfcEntity * pEnt 
[in] A smart pointer to an entity to be resolved.  

A raw pointer to an instance of the OdGeVector2d class.

Returns the result of the entity resolution represented as a two-dimensional vector.

The method returns a valid raw pointer to the OdVector2d object if the resolution result is equal to kResVector3d or kResVector2d; otherwise, the method returns a NULL pointer.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.