Struct kittycad_modeling_cmds::shared::CameraSettings  
source · pub struct CameraSettings {
    pub pos: Point3d,
    pub center: Point3d,
    pub up: Point3d,
    pub fov_y: Option<f32>,
    pub ortho_scale: Option<f32>,
    pub ortho: bool,
}Expand description
Camera settings including position, center, fov etc
Fields§
§pos: Point3dCamera position (vantage)
center: Point3dCamera’s look-at center (center-pos gives viewing vector)
up: Point3dCamera’s world-space up vector
fov_y: Option<f32>Camera’s field-of-view angle (if ortho is false)
ortho_scale: Option<f32>The camera’s ortho scale (derived from viewing distance if ortho is true)
ortho: boolWhether or not the camera is in ortho mode
Trait Implementations§
source§impl Debug for CameraSettings
 
impl Debug for CameraSettings
source§impl<'de> Deserialize<'de> for CameraSettings
 
impl<'de> Deserialize<'de> for CameraSettings
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<CameraSettings> for CameraDragEnd
 
impl From<CameraSettings> for CameraDragEnd
source§fn from(settings: CameraSettings) -> Self
 
fn from(settings: CameraSettings) -> Self
Converts to this type from the input type.
source§impl From<CameraSettings> for CameraDragMove
 
impl From<CameraSettings> for CameraDragMove
source§fn from(settings: CameraSettings) -> Self
 
fn from(settings: CameraSettings) -> Self
Converts to this type from the input type.
source§impl From<CameraSettings> for DefaultCameraGetSettings
 
impl From<CameraSettings> for DefaultCameraGetSettings
source§fn from(settings: CameraSettings) -> Self
 
fn from(settings: CameraSettings) -> Self
Converts to this type from the input type.
source§impl From<CameraSettings> for DefaultCameraZoom
 
impl From<CameraSettings> for DefaultCameraZoom
source§fn from(settings: CameraSettings) -> Self
 
fn from(settings: CameraSettings) -> Self
Converts to this type from the input type.
source§impl JsonSchema for CameraSettings
 
impl JsonSchema for CameraSettings
source§fn schema_name() -> String
 
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
 
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
 
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
 
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the 
$ref keyword. Read moresource§impl Serialize for CameraSettings
 
impl Serialize for CameraSettings
source§impl Value for CameraSettings
 
impl Value for CameraSettings
source§fn into_parts(self) -> Vec<Primitive>
 
fn into_parts(self) -> Vec<Primitive>
Store the value in memory.
source§fn from_parts<I>(values: &mut I) -> Result<Self, MemoryError>
 
fn from_parts<I>(values: &mut I) -> Result<Self, MemoryError>
Read the value from memory.
Auto Trait Implementations§
impl RefUnwindSafe for CameraSettings
impl Send for CameraSettings
impl Sync for CameraSettings
impl Unpin for CameraSettings
impl UnwindSafe for CameraSettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more