SoCameraInteractorLookAt Method |
Returns the rotation needed to point a camera at position toward the given target point while keeping the "up" direction of the camera parallel to the specified up vector.
Namespace: OIV.Inventor.ViewerComponentsAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public SbRotation LookAt(
SbVec3f position,
SbVec3f target,
SbVec3f up
)
Public Function LookAt (
position As SbVec3f,
target As SbVec3f,
up As SbVec3f
) As SbRotation
public:
SbRotation LookAt(
SbVec3f position,
SbVec3f target,
SbVec3f up
)
member LookAt :
position : SbVec3f *
target : SbVec3f *
up : SbVec3f -> SbRotation
Parameters
- position
- Type: OIV.InventorSbVec3f
of the camera
- target
- Type: OIV.InventorSbVec3f
position of the target
- up
- Type: OIV.InventorSbVec3f
up vector of the camera
Return Value
Type:
SbRotationRemarks This method does NOT modify the camera node. Set the returned rotation in the camera's orientation field.
See Also