OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKG2d
Geom2d


Geom2d_Vector Class Reference

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.
.

#include <Geom2d_Vector.hxx>

Inheritance diagram for Geom2d_Vector:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT void Reverse ()
 Reverses the vector <me>.
.
Standard_EXPORT Handle_Geom2d_Vector Reversed () const
 Returns a copy of <me> reversed.
.
Standard_EXPORT Standard_Real Angle (const Handle(Geom2d_Vector)&Other) 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 void Coord (Standard_Real &X, Standard_Real &Y) const
 Returns the coordinates of <me>.
.
virtual Standard_EXPORT Standard_Real Magnitude () const =0
 Returns the Magnitude of <me>.
.
virtual Standard_EXPORT Standard_Real SquareMagnitude () const =0
 Returns the square magnitude of <me>.
.
Standard_EXPORT Standard_Real X () const
 Returns the X coordinate of <me>.
.
Standard_EXPORT Standard_Real Y () const
 Returns the Y coordinate of <me>.
.
virtual Standard_EXPORT Standard_Real Crossed (const Handle(Geom2d_Vector)&Other) const =0
 Cross product of <me> with the vector <other>.
.
Standard_EXPORT Standard_Real Dot (const Handle(Geom2d_Vector)&Other) const
 Returns the scalar product of 2 Vectors.
.
Standard_EXPORT gp_Vec2d Vec2d () const
 Returns a non persistent copy of <me>.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Protected Attributes

gp_Vec2d gpVec2d

Member Function Documentation

Standard_EXPORT Standard_Real Geom2d_Vector::Angle const Handle(Geom2d_Vector)&  Other  )  const
 

Standard_EXPORT void Geom2d_Vector::Coord Standard_Real &  X,
Standard_Real &  Y
const
 

virtual Standard_EXPORT Standard_Real Geom2d_Vector::Crossed const Handle(Geom2d_Vector)&  Other  )  const [pure virtual]
 

Implemented in Geom2d_Direction, and Geom2d_VectorWithMagnitude.

Standard_EXPORT Standard_Real Geom2d_Vector::Dot const Handle(Geom2d_Vector)&  Other  )  const
 

Standard_EXPORT const Geom2d_Vector::Handle Standard_Type   )  const
 

Reimplemented from Geom2d_Geometry.

Reimplemented in Geom2d_Direction, and Geom2d_VectorWithMagnitude.

virtual Standard_EXPORT Standard_Real Geom2d_Vector::Magnitude  )  const [pure virtual]
 

Implemented in Geom2d_Direction, and Geom2d_VectorWithMagnitude.

Standard_EXPORT void Geom2d_Vector::Reverse  ) 
 

Standard_EXPORT Handle_Geom2d_Vector Geom2d_Vector::Reversed  )  const
 

virtual Standard_EXPORT Standard_Real Geom2d_Vector::SquareMagnitude  )  const [pure virtual]
 

Implemented in Geom2d_Direction, and Geom2d_VectorWithMagnitude.

Standard_EXPORT gp_Vec2d Geom2d_Vector::Vec2d  )  const
 

Standard_EXPORT Standard_Real Geom2d_Vector::X  )  const
 

Standard_EXPORT Standard_Real Geom2d_Vector::Y  )  const
 


Field Documentation

gp_Vec2d Geom2d_Vector::gpVec2d [protected]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:22:49 2008 for OpenCASCADE by  doxygen 1.4.1