SHAPER  9.12.0
GeomAPI_XYZ Class Reference

3 coordinates: they may represent vector or point or something else More...

Inheritance diagram for GeomAPI_XYZ:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_XYZ (const double theX, const double theY, const double theZ)
 Creation by coordinates. More...
 
GEOMAPI_EXPORT double x () const
 returns X coordinate More...
 
GEOMAPI_EXPORT double y () const
 returns Y coordinate More...
 
GEOMAPI_EXPORT double z () const
 returns Z coordinate More...
 
GEOMAPI_EXPORT void setX (const double theX)
 sets X coordinate More...
 
GEOMAPI_EXPORT void setY (const double theY)
 sets Y coordinate More...
 
GEOMAPI_EXPORT void setZ (const double theZ)
 sets Z coordinate More...
 
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XYZadded (const std::shared_ptr< GeomAPI_XYZ > &theArg)
 result is sum of coordinates of this and the given argument More...
 
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XYZdecreased (const std::shared_ptr< GeomAPI_XYZ > &theArg)
 result is difference between coordinates of this and the given argument More...
 
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XYZmultiplied (const double theArg)
 result is coordinates multiplied by the argument More...
 
GEOMAPI_EXPORT double dot (const std::shared_ptr< GeomAPI_XYZ > &theArg) const
 result is a scalar product of two triplets More...
 
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_XYZcross (const std::shared_ptr< GeomAPI_XYZ > &theArg) const
 result is a cross product of two triplets More...
 
GEOMAPI_EXPORT double distance (const std::shared_ptr< GeomAPI_XYZ > &theOther) const
 Distance between two triplets. More...
 
GEOMAPI_EXPORT double squareModulus () const
 Square length of triplet from the origin. More...
 
template<class T >
T * implPtr ()
 Returns the pointer to the impl. More...
 
template<class T >
const T * implPtr () const
 Returns the pointer to the impl. More...
 
template<class T >
const T & impl () const
 Returns the reference object of the impl. More...
 
template<class T >
void setImpl (T *theImpl)
 Updates the impl (deletes the old one) More...
 
GEOMAPI_EXPORT bool empty () const
 Returns true if the impl is empty. More...
 

Detailed Description

3 coordinates: they may represent vector or point or something else

Constructor & Destructor Documentation

◆ GeomAPI_XYZ()

GeomAPI_XYZ::GeomAPI_XYZ ( const double  theX,
const double  theY,
const double  theZ 
)

Creation by coordinates.

Member Function Documentation

◆ x()

double GeomAPI_XYZ::x ( ) const

returns X coordinate

◆ y()

double GeomAPI_XYZ::y ( ) const

returns Y coordinate

◆ z()

double GeomAPI_XYZ::z ( ) const

returns Z coordinate

◆ setX()

void GeomAPI_XYZ::setX ( const double  theX)

sets X coordinate

◆ setY()

void GeomAPI_XYZ::setY ( const double  theY)

sets Y coordinate

◆ setZ()

void GeomAPI_XYZ::setZ ( const double  theZ)

sets Z coordinate

◆ added()

const std::shared_ptr< GeomAPI_XYZ > GeomAPI_XYZ::added ( const std::shared_ptr< GeomAPI_XYZ > &  theArg)

result is sum of coordinates of this and the given argument

◆ decreased()

const std::shared_ptr< GeomAPI_XYZ > GeomAPI_XYZ::decreased ( const std::shared_ptr< GeomAPI_XYZ > &  theArg)

result is difference between coordinates of this and the given argument

◆ multiplied()

const std::shared_ptr< GeomAPI_XYZ > GeomAPI_XYZ::multiplied ( const double  theArg)

result is coordinates multiplied by the argument

◆ dot()

double GeomAPI_XYZ::dot ( const std::shared_ptr< GeomAPI_XYZ > &  theArg) const

result is a scalar product of two triplets

◆ cross()

const std::shared_ptr< GeomAPI_XYZ > GeomAPI_XYZ::cross ( const std::shared_ptr< GeomAPI_XYZ > &  theArg) const

result is a cross product of two triplets

◆ distance()

double GeomAPI_XYZ::distance ( const std::shared_ptr< GeomAPI_XYZ > &  theOther) const

Distance between two triplets.

◆ squareModulus()

double GeomAPI_XYZ::squareModulus ( ) const

Square length of triplet from the origin.

◆ implPtr() [1/2]

template<class T >
T* GeomAPI_Interface::implPtr ( )
inlineinherited

Returns the pointer to the impl.

◆ implPtr() [2/2]

template<class T >
const T* GeomAPI_Interface::implPtr ( ) const
inlineinherited

Returns the pointer to the impl.

◆ impl()

template<class T >
const T& GeomAPI_Interface::impl ( ) const
inlineinherited

Returns the reference object of the impl.

◆ setImpl()

template<class T >
void GeomAPI_Interface::setImpl ( T *  theImpl)
inlineinherited

Updates the impl (deletes the old one)

◆ empty()

bool GeomAPI_Interface::empty ( ) const
inherited

Returns true if the impl is empty.