java.lang.Object
uk.co.caprica.vlcj.player.base.Viewpoint
Viewpoint for 360 degree video.
Native viewpoint default field of view is 80 degrees.
-
Constructor Summary
ConstructorsConstructorDescriptionViewpoint
(uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t viewpoint) Create a viewpoint. -
Method Summary
Modifier and TypeMethodDescriptionfloat
fov()
Get the field of view.float
pitch()
Get the pitch.void
release()
Release the component and associated native resources.float
roll()
Get the roll.void
setFov
(float fov) Set the field of view.void
setPitch
(float pitch) Set the pitch.void
setRoll
(float roll) Set the roll.void
setYaw
(float yaw) Set the yaw.uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t
Get the native viewpoint instance.float
yaw()
Get the yaw.
-
Constructor Details
-
Viewpoint
public Viewpoint(uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t viewpoint) Create a viewpoint.- Parameters:
viewpoint
- native viewpoint instance
-
-
Method Details
-
yaw
public float yaw()Get the yaw.- Returns:
- yaw, degrees
-
setYaw
public void setYaw(float yaw) Set the yaw.- Parameters:
yaw
- yaw, degrees
-
pitch
public float pitch()Get the pitch.- Returns:
- pitch
-
setPitch
public void setPitch(float pitch) Set the pitch.- Parameters:
pitch
- , degrees
-
roll
public float roll()Get the roll.- Returns:
- roll, degrees
-
setRoll
public void setRoll(float roll) Set the roll.- Parameters:
roll
- roll, degrees
-
fov
public float fov()Get the field of view.- Returns:
- field of view, degrees
-
setFov
public void setFov(float fov) Set the field of view.- Parameters:
fov
- field of view, degrees
-
viewpoint
public uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t viewpoint()Get the native viewpoint instance.- Returns:
- viewpoint instance
-
release
public void release()Release the component and associated native resources.The component must no longer be used.
-