Drawing3d documented Class Library

Base.LookAt Method

Returns a base with Origin "Cameraposition"
the z-axis is the direction from CameraTarget to CameraPosition
and the CameraUpVector fixes the y-axis

[Visual Basic]
Public Shared Sub LookAt( _
   ByVal CameraPosition As xyz, _
   ByVal CameraTarget As xyz, _
   ByVal CameraUpVector As xyz _
)
[C#]
public static Base LookAt(
   xyz CameraPosition,
   xyz CameraTarget,
   xyz CameraUpVector
);

Parameters

CameraPosition
Position of the camera
CameraTarget
Looks to that point
CameraUpVector
Normalvector of the camera

Return Value

A normalized

See Also

Base Class | Drawing3d.Math Namespace