Vector Class Reference

A vector object is used to represent the light source for a grid color scheme. More...

Collaboration diagram for Vector:
Collaboration graph

Public Member Functions

Vector CrossProduct (Vector V)
 Calculates the vector cross product between the current vector object and the specified vector. More...
 
double Dot (Vector V)
 Calculates the dot product of the current vector object with the specified vector. More...
 
string get_ErrorMsg (int ErrorCode)
 Retrieves the error message associated with the specified error code. More...
 
void Normalize ()
 Normalizes the vector. More...
 

Properties

ICallback GlobalCallback [get, set]
 The global callback is the interface used by MapWinGIS to pass progress and error events to interested applications. More...
 
double i [get, set]
 Gets or sets the i component of the vector. More...
 
double j [get, set]
 Gets or sets the j component of the vector. More...
 
double k [get, set]
 Gets or sets the k component of the vector. More...
 
string Key [get, set]
 The key may be used by the programmer to store any string data associated with the object. More...
 
int LastErrorCode [get]
 Retrieves the last error generated in the object. More...
 

Detailed Description

A vector object is used to represent the light source for a grid color scheme.

Member Function Documentation

◆ CrossProduct()

Vector Vector.CrossProduct ( Vector  V)

Calculates the vector cross product between the current vector object and the specified vector.

Parameters
VThe vector to calculate the cross product with the current vector object.
Returns
The cross product of the current vector object and the specified vector.

◆ Dot()

double Vector.Dot ( Vector  V)

Calculates the dot product of the current vector object with the specified vector.

Parameters
VThe vector to use to calculate the dot product with the current vector object.
Returns
The dot product of the current vector object and the specified vector.

◆ get_ErrorMsg()

string Vector.get_ErrorMsg ( int  ErrorCode)

Retrieves the error message associated with the specified error code.

Parameters
ErrorCode
Returns

◆ Normalize()

void Vector.Normalize ( )

Normalizes the vector.

Property Documentation

◆ GlobalCallback

ICallback Vector.GlobalCallback
getset

The global callback is the interface used by MapWinGIS to pass progress and error events to interested applications.

Deprecated:
v4.9.3 Use GlobalSettings.ApplicationCallback instead.

◆ i

double Vector.i
getset

Gets or sets the i component of the vector.

◆ j

double Vector.j
getset

Gets or sets the j component of the vector.

◆ k

double Vector.k
getset

Gets or sets the k component of the vector.

◆ Key

string Vector.Key
getset

The key may be used by the programmer to store any string data associated with the object.

◆ LastErrorCode

int Vector.LastErrorCode
get

Retrieves the last error generated in the object.