void SetReferencePoint( const float* ReferencePoint, BOOL KeepEyePoint = FALSE );
|ReferencePoint||Pointer to an array of three float values. Specifies the new reference point location coordinates in x,y,z order.|
|KeepEyePoin||Specifies whether the current eye point location should be kept or not. If TRUE the eye point location will be kept. If FALSE the eye point will be moved in the same way as the reference point will be moved. The looking direction and up direction vectors will be kept.|
Use the SetReferencePoint method function to change the location of a reference point. The reference point is the point you see in the center of the object window. The objectís view projection will be changed and the specified reference point will be visible in the center of the object window .
If the KeepEyePoint parameter is TRUE then the current eye point location will be kept. The looking direction will be changed and it will be determined by the old eye point -> a new reference point vector. The up direction vector may be changed but will be kept in the plane specified by the old looking direction and up direction vectors.
If the KeepEyePoint parameter is FALSE then the eye point will be moved together with the reference point. The looking direction and up direction vectors will be kept. The distance from eye point to the reference point will be kept as well.
The default reference point location set by object initialization is [0, 0, 0]
GetReferencePoint, SetEyePoint, GetEyePoint, SetUpDirection, GetUpDirection, SetLookDistance, GetLookDistance, LookAt
|© 2001 Solid Graphics, All rights reserved.|
|To view this site, we require use of either Netscape Navigator 4.0 or higher or Internet Explorer 4.0 or higher.|