DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


IAxis Interface

GetDirection
SetDirection

Methods of base class ILocation:

GetLocation
SetLocation

IAxis interface is implemented by objects to give access to a property, which is an axis in 3D space. An axis is uniquely defined by its point of origin and a non-zero vector of direction. IAxis interface is inherited from (and hence has all methods of) ILocation interface.

See also Modal View Sample, ILocation interface and Interface List


HRESULT GetDirection( double * pdVX, double * pdVY, double * pdVZ )

Parameters

pdVX, pdVY, pdVZ - [out] pointers to the double variables which will receive the coordinates.

Return Values

S_OK in case of success.

HRESULT SetDirection( double dVX, double dVY, double dVZ )

Parameters

dX, dY, dZ - [in] coordinates of new direction vector. The vector must not be zero.

Return Values

DI_E_INVALIDGEOMETRY  if all parameters are equal to zero .

S_OK in case of success.