Initialize the VelocityVector from a Star object.

Namespace: ASCOM.Astrometry.NOVASCOM
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public bool SetFromStar(
	Star star
)
Visual Basic
Public Function SetFromStar ( _
	star As Star _
) As Boolean
Visual C++
public:
virtual bool SetFromStar(
	Star^ star
) sealed

Parameters

star
Type: ASCOM.Astrometry.NOVASCOM..::..Star
The Star object from which to initialize

Return Value

True if OK otherwise throws an exception

Implements

IVelocityVector..::..SetFromStar(Star)

Remarks

The proper motions, distance and radial velocity are used in the velocity calculation.

Exceptions

ExceptionCondition
ASCOM.Astrometry.Exceptions..::..ValueNotAvailableExceptionIf any of: Parallax, RightAscension, Declination, ProperMotionRA, ProperMotionDec or RadialVelocity are not available in the star object

See Also