Show / Hide Table of Contents

Class Camera

Inheritance
System.Object
Camera
Namespace: Ladybug.SceneManagement
Assembly: ladybug.dll
Syntax
public class Camera : object

Constructors

Camera(Viewport)

Declaration
public Camera(Viewport viewport)
Parameters
Type Name Description
Viewport viewport

Properties

AllowedArea

Declaration
public Rectangle AllowedArea { get; protected set; }
Property Value
Type Description
Rectangle

Bounds

Declaration
public Rectangle Bounds { get; protected set; }
Property Value
Type Description
Rectangle

Position

Declaration
public Vector2 Position { get; protected set; }
Property Value
Type Description
Vector2

Transform

Declaration
public Matrix Transform { get; protected set; }
Property Value
Type Description
Matrix

View

Declaration
public Rectangle View { get; protected set; }
Property Value
Type Description
Rectangle

Zoom

Declaration
public float Zoom { get; protected set; }
Property Value
Type Description
System.Single

Methods

LerpTo(Vector2, Single)

Declaration
public void LerpTo(Vector2 newPosition, float by)
Parameters
Type Name Description
Vector2 newPosition
System.Single by

Move(Vector2)

Declaration
public void Move(Vector2 newPosition)
Parameters
Type Name Description
Vector2 newPosition

RemoveAllowedArea(Rectangle)

Declaration
public void RemoveAllowedArea(Rectangle r)
Parameters
Type Name Description
Rectangle r

ScreenToWorldSpace(Vector2)

Declaration
public Vector2 ScreenToWorldSpace(Vector2 source)
Parameters
Type Name Description
Vector2 source
Returns
Type Description
Vector2

SetAllowedArea(Rectangle)

Declaration
public void SetAllowedArea(Rectangle r)
Parameters
Type Name Description
Rectangle r

SetPosition(Vector2)

Declaration
public void SetPosition(Vector2 newPosition)
Parameters
Type Name Description
Vector2 newPosition

SetZoom(Single)

Declaration
public void SetZoom(float z)
Parameters
Type Name Description
System.Single z

Update(Viewport)

Declaration
public void Update(Viewport vp)
Parameters
Type Name Description
Viewport vp

WorldToScreenSpace(Vector2)

Declaration
public Vector2 WorldToScreenSpace(Vector2 source)
Parameters
Type Name Description
Vector2 source
Returns
Type Description
Vector2

ZoomBy(Single)

Declaration
public void ZoomBy(float z)
Parameters
Type Name Description
System.Single z
Back to top Generated by DocFX