Drake
Drake C++ Documentation
Meshcat::PerspectiveCamera Struct Reference

Detailed Description

Properties for a perspective camera in three.js: https://threejs.org/docs/#api/en/cameras/PerspectiveCamera.

#include <drake/geometry/meshcat.h>

Public Member Functions

template<typename Archive >
void Serialize (Archive *a)
 Passes this object to an Archive. More...
 

Public Attributes

double fov {75}
 Camera frustum vertical field of view. More...
 
double aspect {1}
 Camera frustum aspect ratio. More...
 
double near {.01}
 Camera frustum near plane. More...
 
double far {100}
 Camera frustum far plane. More...
 
double zoom {1}
 The zoom factor of the camera. More...
 

Member Function Documentation

◆ Serialize()

void Serialize ( Archive *  a)

Passes this object to an Archive.

Refer to YAML Serialization for background.

Member Data Documentation

◆ aspect

double aspect {1}

Camera frustum aspect ratio.

◆ far

double far {100}

Camera frustum far plane.

◆ fov

double fov {75}

Camera frustum vertical field of view.

◆ near

double near {.01}

Camera frustum near plane.

◆ zoom

double zoom {1}

The zoom factor of the camera.


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