Method SetObserverFromObjects
SetObserverFromObjects(IEnumerable<Object>, int, int, int)
Sets observer position so that the specified objects are
visible. The first object in the objects
affects the initial view direction for the observer. Then the
observer is placed so that all of the objects
are visible, and then hAngle
and vAngle
parameters are applied to rotate the observer.
All the angles are expected to be in degrees.
Declaration
public void SetObserverFromObjects(IEnumerable<Scene.Object> objects, int hAngle, int vAngle, int angleOfView)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Scene.Object> | objects | |
int | hAngle | |
int | vAngle | |
int | angleOfView |