Loading...
Searching...
No Matches
com.navigine.idl.java.Camera Class Reference

Class describing position of the camera. More...

Public Member Functions

 Camera (Point point, float zoom, float rotation)
 Default constructor for class Camera.
 
Point getPoint ()
 point the camera is looking at Point
 
float getZoom ()
 zoom level.
 
float getRotation ()
 angle between Location North (top of the image) and the direction of interest on the view plane in degrees in the range [0, 360).
 
String toString ()
 

Detailed Description

Class describing position of the camera.

Referenced from LocationWindow.

Java code snippet:

// Create camera with constructor
Point newPoint = new Point(100.0, 200.0);
Camera newCamera = new Camera(newPoint, 50.0, 0.0);
System.out.println("Created camera with point (" + newPoint.x + ", " + newPoint.y + "), zoom 50.0, rotation 0°");

Kotlin code snippet:

// Create camera with constructor
val newPoint = Point(100.0, 200.0)
val newCamera = Camera(newPoint, 50.0, 0.0)
println("Created camera with point (${newPoint.x}, ${newPoint.y}), zoom 50.0, rotation 0°")

Definition at line 23 of file Camera.java.

Constructor & Destructor Documentation

◆ Camera()

com.navigine.idl.java.Camera.Camera ( Point point,
float zoom,
float rotation )
inline

Default constructor for class Camera.

Definition at line 35 of file Camera.java.

Member Function Documentation

◆ getPoint()

Point com.navigine.idl.java.Camera.getPoint ( )
inline

point the camera is looking at Point

Returns

Definition at line 47 of file Camera.java.

◆ getRotation()

float com.navigine.idl.java.Camera.getRotation ( )
inline

angle between Location North (top of the image) and the direction of interest on the view plane in degrees in the range [0, 360).

Returns

Definition at line 62 of file Camera.java.

◆ getZoom()

float com.navigine.idl.java.Camera.getZoom ( )
inline

zoom level.

Returns

Definition at line 54 of file Camera.java.

◆ toString()

String com.navigine.idl.java.Camera.toString ( )
inline

Definition at line 67 of file Camera.java.


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