Struct kittycad_modeling_cmds::shared::Point3d
source · pub struct Point3d<T = f32>{
pub x: T,
pub y: T,
pub z: T,
}
Expand description
A point in 3D space
Fields§
§x: T
§y: T
§z: T
Implementations§
source§impl Point3d<LengthUnit>
impl Point3d<LengthUnit>
sourcepub fn to_millimeters(&self, from: UnitLength) -> Point3d<f64>
pub fn to_millimeters(&self, from: UnitLength) -> Point3d<f64>
Convert the point to millimeters.
source§impl Point3d<f64>
impl Point3d<f64>
sourcepub fn from_millimeters(&self, to: UnitLength) -> Point3d<LengthUnit>
pub fn from_millimeters(&self, to: UnitLength) -> Point3d<LengthUnit>
Convert the point from millimeters.
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Point3d<T>
impl<'de, T> Deserialize<'de> for Point3d<T>
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<T> JsonSchema for Point3d<T>
impl<T> JsonSchema for Point3d<T>
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<T> PartialEq for Point3d<T>
impl<T> PartialEq for Point3d<T>
source§impl<T> Value for Point3d<T>
impl<T> Value for Point3d<T>
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.
impl<T> Copy for Point3d<T>
impl<T> StructuralPartialEq for Point3d<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Point3d<T>where
T: RefUnwindSafe,
impl<T> Send for Point3d<T>where
T: Send,
impl<T> Sync for Point3d<T>where
T: Sync,
impl<T> Unpin for Point3d<T>where
T: Unpin,
impl<T> UnwindSafe for Point3d<T>where
T: UnwindSafe,
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