Space Engineers
Public Member Functions | Properties | List of all members
VRage.ModAPI.IMyCamera Interface Reference
Inheritance diagram for VRage.ModAPI.IMyCamera:
VRage.Game.Utils.MyCamera

Public Member Functions

double GetDistanceWithFOV (VRageMath.Vector3D position)
 
bool IsInFrustum (ref VRageMath.BoundingBoxD boundingBox)
 
bool IsInFrustum (ref VRageMath.BoundingSphereD boundingSphere)
 
bool IsInFrustum (VRageMath.BoundingBoxD boundingBox)
 
Vector3D WorldToScreen (ref Vector3D worldPos)
 Gets screen coordinates of 3d world pos in 0 - 1 distance where 1.0 is screen width(for X) or height(for Y). WARNING: Y is from bottom to top. More...
 
LineD WorldLineFromScreen (Vector2 screenCoords)
 

Properties

Vector3D Position [get]
 
Vector3D PreviousPosition [get]
 
Vector2 ViewportOffset [get]
 
Vector2 ViewportSize [get]
 
MatrixD ViewMatrix [get]
 
MatrixD WorldMatrix [get]
 
MatrixD ProjectionMatrix [get]
 
float NearPlaneDistance [get]
 
float FarPlaneDistance [get]
 
float NearForNearObjects [get]
 
float FarForNearObjects [get]
 
float FieldOfViewAngle [get]
 
float FovWithZoom [get]
 
MatrixD ProjectionMatrixForNearObjects [get]
 
float FieldOfViewAngleForNearObjects [get]
 
float FovWithZoomForNearObjects [get]
 

Detailed Description

Definition at line 6 of file IMyCamera.cs.

Member Function Documentation

double VRage.ModAPI.IMyCamera.GetDistanceWithFOV ( VRageMath.Vector3D  position)
bool VRage.ModAPI.IMyCamera.IsInFrustum ( ref VRageMath.BoundingBoxD  boundingBox)
bool VRage.ModAPI.IMyCamera.IsInFrustum ( ref VRageMath.BoundingSphereD  boundingSphere)
bool VRage.ModAPI.IMyCamera.IsInFrustum ( VRageMath.BoundingBoxD  boundingBox)
LineD VRage.ModAPI.IMyCamera.WorldLineFromScreen ( Vector2  screenCoords)

Implemented in VRage.Game.Utils.MyCamera.

Vector3D VRage.ModAPI.IMyCamera.WorldToScreen ( ref Vector3D  worldPos)

Gets screen coordinates of 3d world pos in 0 - 1 distance where 1.0 is screen width(for X) or height(for Y). WARNING: Y is from bottom to top.

Parameters
worldPosWorld position.
Returns
Screen coordinate in 0-1 distance.

Implemented in VRage.Game.Utils.MyCamera.

Property Documentation

float VRage.ModAPI.IMyCamera.FarForNearObjects
get

Definition at line 19 of file IMyCamera.cs.

float VRage.ModAPI.IMyCamera.FarPlaneDistance
get

Definition at line 17 of file IMyCamera.cs.

float VRage.ModAPI.IMyCamera.FieldOfViewAngle
get

Definition at line 21 of file IMyCamera.cs.

float VRage.ModAPI.IMyCamera.FieldOfViewAngleForNearObjects
get

Definition at line 40 of file IMyCamera.cs.

float VRage.ModAPI.IMyCamera.FovWithZoom
get

Definition at line 22 of file IMyCamera.cs.

float VRage.ModAPI.IMyCamera.FovWithZoomForNearObjects
get

Definition at line 42 of file IMyCamera.cs.

float VRage.ModAPI.IMyCamera.NearForNearObjects
get

Definition at line 18 of file IMyCamera.cs.

float VRage.ModAPI.IMyCamera.NearPlaneDistance
get

Definition at line 16 of file IMyCamera.cs.

Vector3D VRage.ModAPI.IMyCamera.Position
get

Definition at line 8 of file IMyCamera.cs.

Vector3D VRage.ModAPI.IMyCamera.PreviousPosition
get

Definition at line 9 of file IMyCamera.cs.

MatrixD VRage.ModAPI.IMyCamera.ProjectionMatrix
get

Definition at line 14 of file IMyCamera.cs.

MatrixD VRage.ModAPI.IMyCamera.ProjectionMatrixForNearObjects
get

Definition at line 38 of file IMyCamera.cs.

MatrixD VRage.ModAPI.IMyCamera.ViewMatrix
get

Definition at line 12 of file IMyCamera.cs.

Vector2 VRage.ModAPI.IMyCamera.ViewportOffset
get

Definition at line 10 of file IMyCamera.cs.

Vector2 VRage.ModAPI.IMyCamera.ViewportSize
get

Definition at line 11 of file IMyCamera.cs.

MatrixD VRage.ModAPI.IMyCamera.WorldMatrix
get

Definition at line 13 of file IMyCamera.cs.


The documentation for this interface was generated from the following file: