// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Geom2d_Vector_HeaderFile #define _Geom2d_Vector_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Geom2d_Vector_HeaderFile #include #endif #ifndef _gp_Vec2d_HeaderFile #include #endif #ifndef _Geom2d_Geometry_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class Standard_DomainError; class gp_VectorWithNullMagnitude; class gp_Vec2d; //! The abstract class Vector describes the common
//! behavior of vectors in 2D space.
//! The Geom2d package provides two concrete
//! classes of vectors: Geom2d_Direction (unit vector)
//! and Geom2d_VectorWithMagnitude.
class Geom2d_Vector : public Geom2d_Geometry { public: //! Reverses the vector .
Standard_EXPORT void Reverse() ; //! Returns a copy of reversed.
Standard_EXPORT Handle_Geom2d_Vector Reversed() const; //! Computes the angular value, in radians, between this
//! vector and vector Other. The result is a value
//! between -Pi and Pi. The orientation is from this
//! vector to vector Other.
//! Raises VectorWithNullMagnitude if one of the two vectors is a vector with
//! null magnitude because the angular value is indefinite.
Standard_EXPORT Standard_Real Angle(const Handle(Geom2d_Vector)& Other) const; //! Returns the coordinates of .
Standard_EXPORT void Coord(Standard_Real& X,Standard_Real& Y) const; //! Returns the Magnitude of .
Standard_EXPORT virtual Standard_Real Magnitude() const = 0; //! Returns the square magnitude of .
Standard_EXPORT virtual Standard_Real SquareMagnitude() const = 0; //! Returns the X coordinate of .
Standard_EXPORT Standard_Real X() const; //! Returns the Y coordinate of .
Standard_EXPORT Standard_Real Y() const; //! Cross product of with the vector .
Standard_EXPORT virtual Standard_Real Crossed(const Handle(Geom2d_Vector)& Other) const = 0; //! Returns the scalar product of 2 Vectors.
Standard_EXPORT Standard_Real Dot(const Handle(Geom2d_Vector)& Other) const; //! Returns a non persistent copy of .
Standard_EXPORT gp_Vec2d Vec2d() const; DEFINE_STANDARD_RTTI(Geom2d_Vector) protected: gp_Vec2d gpVec2d; private: }; // other Inline functions and methods (like "C++: function call" methods) #endif