VecPt2D

| HOME | BACK |

Overview

VecPt2D is a vector to store Pt2D objects. 

 

Member data

Name Data type Meaning
id int ID number of the vector
size int no of data in the vector
maxsize int no of maximum data can be stored in a vector

 

Operator

no operator provided

 

Construction function

{VecPt2D} ret  =  VECPT2D([{int} argm1])

argm1 = max no of data in the vector    (default = 3)

Example:

->v1 = VecPt2D() default max size = 5 (can store up to 5 points)

->v1 = VecPt2D(200)

create a vector of indices with max size = 200

 

Lfunction

object({int} argm1)   =  {Pt2D} left-value

argm1 = vector index

object.ID()           =  {int} left-value

 

Example:

->v1(0) = Pt2D(50.5,60.25) set value of the 1st element to an x y coordinate of (50.5 ,60.25)

 

Class function

 (  ) AREA  EXTEND FIND ID
INIT LOAD LOADSCH MATRIX MAX
 MAXSIZE MEAN MIN    
NEAREST PUSHBACK  QFIND REMALL REMOVE
REMSORT REVERSE SAVE  SHIFT SIZE
SMOOTH SORT SWAP_XY  TRUNCATE WINDOW
 WINDOW_X WINDOW_XY      

 


| HOME | BACK |