Camera |
public abstract class CameraBase : IImmutable
The CameraBase type exposes the following members.
Name | Description | |
---|---|---|
CameraBase | Initializes a new instance of the CameraBase class |
Name | Description | |
---|---|---|
Distance | Gets the distance of the camera from the target position. | |
EyePosition | Gets the camera position, the so-called eye position. | |
InverseLookAtRHMatrix | Gets the inverse LookAtRH matrix. This matrix transforms a point from the camera coordinate system to the world coordinate system, i.e. the point (0,0,0) is transformed to (CameraPosition.X, CameraPosition.Y, CameraPosition.Z). | |
LookAtRHMatrix | Returns the same matrix that the Direct3D function LookAtRH would provide. | |
RightVectorPerpendicularToEyeVectorNormalized | Gets the normalized right vector, that is made perpendicular to the eye vector. | |
ScreenOffset | Gets the screen offset. The screen offset has to be used only in extraordinary situation, e.g. for shifting to simulate multisampling; or for shifting to center the exported bitmap. It is not serialized either. | |
TargetPosition | Gets the position the camera is looking at. | |
TargetToEyeVector | Gets the eye vector, i.e. the vector pointing from target to the camera eye. | |
TargetToEyeVectorNormalized | Gets the normalized eye vector, i.e. the vector pointing from target to the camera eye. | |
UpVector | Gets the camera up vector. | |
UpVectorPerpendicularToEyeVectorNormalized | Gets the normalized up vector, that is made perpendicular to the eye vector. | |
WidthAtTargetDistance | Gets the width of the view field at target distance. | |
WidthAtZNear | Gets the width of the view field at ZNear distance. | |
ZFar | Gets the maximum distance the camera is 'seeing' something. Objects farther away than this distance (from the camera) will not be visible. | |
ZNear | Gets the minimum distance the camera is 'seeing' something. Objects closer than this distance (from the camera) will not be visible. |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetHitRayMatrix | Gets a matrix for a hit point on the screen. The hit point is given in relative coordinates (X and Y component). The screen's aspect ratio is given in the Z component. The result is a matrix which transforms world coordinates in that way that the hit ray in world coordinates is transformed to x=0 and y=0 and z being the distance to the camera. | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
GetViewProjectionMatrix | Gets the result of LookAtRH matrix multiplied with the ViewRH matrix (ViewRH is either OrthoRH or PerspectiveRH, depending on the camera type). | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
ToString | Returns a string that represents the current object. (Inherited from Object) | |
WithDistanceByChangingEyePosition | Gets a new camera with the distance between eye and target as provided in the argument distance. The new distance is set by changing the eye position of the camera. | |
WithEyeTarget | Creates a new camera with provided eyePosition and targetPosition; | |
WithLookAtRHMatrix(Matrix4x3) | Creates a new camera which has the LookAtRH matrix as provided in the argument. Up and eye vector as well as eye position are calculated from the provided matrix, the target position is in such a way calculated that the distance is kept constant. | |
WithLookAtRHMatrix(Matrix4x3, Double) | Creates a new camera which has the LookAtRH matrix as provided in the argument. Up and eye vector as well as eye position are calculated from the provided matrix, the target position is calculated from the eye vector and the provided newDistance value. | |
WithScreenOffset | Gets a new instance with ScreenOffset set to the provided value. The screen offset has to be used only in extraordinary situation, e.g. for shifting to simulate multisampling; or for shifting to center the exported bitmap. It is not serialized either. | |
WithUpEye | Creates a new camera with provided upVector and eyePosition. | |
WithUpEyeTarget | Creates a new camera with provided upVector, eyePosition, targetPosition. | |
WithUpEyeTargetZNearZFar | Creates a new camera with provided upVector, eyePosition, targetPosition, znear and zfar distance.. | |
WithWidthAtZNear | Gets a new instance of this camera, with WidthAtZNear set to the provided argument. | |
WithZNearZFarWithoutChangingViewAngle | Gets a new instance of the camera with ZNear and ZFar set to the provided values. The WidthAtTargetDistance is adjusted so that the view angle of the camera is not changed. |
Name | Description | |
---|---|---|
_eyePosition | ||
_screenOffset | Gets or sets the screen offset. The screen offset has to be used only in extraordinary situation, e.g. for shifting to simulate multisampling; or for shifting to center the exported bitmap. This is a relative value - relative to the dimensions of the screen. It is not serialized either. | |
_targetPosition | ||
_upVector | ||
_widthAtZNear | ||
_zFar | ||
_zNear |