void SetEyePoint( const float* EyePoint, BOOL KeepReferencePoint = FALSE );
|EyePoint||Pointer to an array of three float values. Specifies the new eye point location coordinates in x,y,z order.|
|KeepReferencePoint||Specifies whether the current reference point location should be kept or not. If TRUE, the reference point location will be kept. If FALSE, the reference point will be moved in the same way as the eye point will be moved. This means that the looking direction and up direction vectors will be kept.|
Use the SetEyePoint method function to change the location of the eye point. The eye point is the point from where you are looking towards to the reference point.
If the KeepReferencePoint parameter is TRUE then the current reference point location will be kept. The looking direction will be changed and it will be determined by the new eye point -> the old 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 KeepReferencePoint parameter is FALSE then the reference point will be moved together with the eye point. The looking direction and up direction vectors will be kept. The distance from the eye point to the reference point will be kept as well.
The default eye point location set by the object initialization is [0, 0, 1]
SetReferencePoint, GetReferencePoint, 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.|