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


IVectorOperation_DG Interface

Interface for basic operations with 3D vectors and points

IVectorOperation_DG can be obtained from IDIObjGenerator using query DGKernelControl.GetModel() >  IModel_DG > IObjectGenerator_DG >  IVectorOperation_DG

Methods:

Get
Set
GetCoordinate
SetCoordinate
Add
Subtract
Multiply
Copy
GetLength
Normalize
Distance
ScalarProduct
CrossProduct
Angle

void Get(Vect_DG vect, out double vx, out double vy, out double vz)


void Set(Vect_DG vect, double vx, double vy, double vz)


double GetCoordinate(Vect_DG vect, short coord)


void SetCoordinate(Vect_DG vect, short coord, double val)


void Add(Vect_DG vect, Vect_DG vectOther)

Adds vectOther to vect


void Subtract(Vect_DG vect, Vect_DG vectOther)

Subtracts vectOther from vect


void Multiply(Vect_DG vect, double m)

Multiplies vect by m


void Copy(Vect_DG vectTo, Vect_DG vectFrom)


double GetLength(Vect_DG vect)


bool Normalize(Vect_DG vect)

Forces length of vect to 1.0, while keeping its direction. Returns false if vect had zero length


double Distance(Vect_DG vect0, Vect_DG vect1)


double ScalarProduct(Vect_DG vect0, Vect_DG vect1)


Vect_DG CrossProduct(Vect_DG vect0, Vect_DG vect1)


double Angle(Vect_DG vect0, Vect_DG vect1)