CoordinateSystem.Vector1Axis Property

Top 

Description

Number or Variable that specifies which axis of the coordinate system (1 = X-axis, 2 = Y-axis, or 3 = Z-axis) will be defined by vector1.

 

Vector1 will always be colinear with the axis specified by the vector1Axis property. The next axis is computed using the cross product of the two vectors. A third vector is computed using the cross product of the first two axes, and vector2Axis specifies which axis of the new coordinate system (X, Y, or Z) will be defined by this new vector. If vector1 and vector2 are orthogonal, then vector2 will be colinear with the axis specified by the vector2Axis property.

 

Example 1: CoordinateSystem1.BuildCoordinateSystem(1, EastVector, 3, ZenithVector);

 

The X-axis of the new coordinate system is defined by EastVector. The Y-axis is defined by Y = CrossProduct(ZenithVector, EastVector). The Z-axis is defined by Z = CrossProduct(EastVector, Y). Note that Z does not necessarily equal ZenithVector.

 

Example 2: CoordinateSystem1.BuildCoordinateSystem(3, ZenithVector, 1, EastVector);

 

The Z-axis of the new coordinate system is defined by ZenithVector. The Y-axis is defined by Y = CrossProduct(ZenithVector, EastVector). The X-axis is defined by X = CrossProduct(Y, ZenithVector). Note that X does not necessarily equal EastVector.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Attributes

Type:

integer

Access:

read/write

Default Value:

1 ( x-axis )

Valid Values:

Value

Label

1

x-axis

2

y-axis

3

z-axis

 

Syntax

myVariable1 = myCoordinateSystem1.Vector1Axis;

 

myCoordinateSystem1.Vector1Axis = myVariable1;

 

See also

CoordinateSystem Object

Vectors and Coordinate Systems Guide

Orbit Reference Frames Guide

Attitude Reference Frames Guide

Matrix, Array, and Variable Math Guide