Library | File

Class pfcVector3D

# include <pfcBase.h>

class pfcVector3D
 : public xobject
{
    xdeclare(pfcVector3D)
    ...
};
This is a COMPACT class.



Description

A 3x1 array that stores a three-dimensional vector.

Array provides methods for accessing its elemnts by index(indices) and for modifying its elements. Array object "does not know" its dimentions.
Manual References:
Geometry Evaluation: Geometry of Coordinate System Datums, Geometry Evaluation: Geometry of datums, Overview of Creo Object TOOLKIT C++: Array Classes, Annotations: Geometric Tolerances: Attaching the Geometric Tolerances

Array Dimensions: [3]



Method Summary

static pfcVector3D *create ()
Creates new array object with uninitialized elements.
xrealget (xint idx0)
Gets an array element with the specified index(indices). If an index is out of range throws exception cipXInvalidArrayIndex.
voidset (xint idx0, xreal value)
Assignes a new value to an array element with the specified index(indices). If an index is out of range throws exception cipXInvalidArrayIndex.



Method Detail

xrealget (xint idx0)

Gets an array element with the specified index(indices). If an index is out of range throws exception cipXInvalidArrayIndex.
Parameters:
idx0
First element index.
Returns:
Element value.



voidset (xint idx0, xreal value)

Assignes a new value to an array element with the specified index(indices). If an index is out of range throws exception cipXInvalidArrayIndex.
Parameters:
idx0
First element index.
value
New element value.
Returns:



static pfcVector3D *create ()

Creates new array object with uninitialized elements.
Returns:
Created array.