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#
bool SetFromStar(
	Star star
)
Visual Basic
Function SetFromStar ( _
	star As Star _
) As Boolean
Visual C++
bool SetFromStar(
	Star^ star
)

Parameters

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

Return Value

True if OK otherwise throws an exception

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