pub struct Pickup {
pub dst: usize,
pub src: usize,
pub what: Kind,
pub scale: f64,
pub offset: f64,
pub from: Option<Kind>,
}Expand description
ピックアップ: 面 dst の量 what = scale × 面 src の量 from(None なら what)+ offset。
曲率は OpticStudio と同じく特別で(2026 R1.01 で実測)、同じ列(曲率・半径)からなら c = scale × c元、 別の列の値 v からなら元の値を半径とみなして c = scale / v(オフセットなし)。ほかの量が半径の列から取るときは 半径の値 R を使う(v = scale × R + offset)
Fields§
§dst: usize§src: usize§what: Kind§scale: f64§offset: f64§from: Option<Kind>元の量(別の列からのピックアップ)。None は what と同じ
Implementations§
Source§impl Pickup
impl Pickup
Sourcepub fn new(
dst: usize,
src: usize,
what: Kind,
scale: f64,
offset: f64,
) -> Pickup
pub fn new( dst: usize, src: usize, what: Kind, scale: f64, offset: f64, ) -> Pickup
同じ量どうしのピックアップ
Trait Implementations§
impl Copy for Pickup
Source§impl<'de> Deserialize<'de> for Pickup
impl<'de> Deserialize<'de> for Pickup
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 JsonSchema for Pickup
impl JsonSchema for Pickup
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Pickup
Auto Trait Implementations§
impl Freeze for Pickup
impl RefUnwindSafe for Pickup
impl Send for Pickup
impl Sync for Pickup
impl Unpin for Pickup
impl UnsafeUnpin for Pickup
impl UnwindSafe for Pickup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more