pub struct NearestPointOptions {
pub max_distance_error: f64,
pub max_iterations: u32,
}Expand description
Distance certification budget in caller units and an explicit dimensionless iteration limit.
Fields§
§max_distance_error: f64Maximum error of the returned distance relative to the global minimum, in coordinate units; not a point-position bound.
max_iterations: u32Dimensionless iteration cap, from 1 through 1000000.
Implementations§
Source§impl NearestPointOptions
impl NearestPointOptions
Sourcepub fn for_tolerance(t: &GeometryTolerance) -> Self
pub fn for_tolerance(t: &GeometryTolerance) -> Self
Use tolerance.linear as the coordinate-unit distance budget and the default iteration cap; validation occurs when an operation runs.
Sourcepub fn validate(self) -> GeometryResult<()>
pub fn validate(self) -> GeometryResult<()>
Validate finite values and the supported profile. Where supplied, tolerances use caller units, radians and squared units; no repair or unit conversion is performed.
Trait Implementations§
Source§impl Clone for NearestPointOptions
impl Clone for NearestPointOptions
impl Copy for NearestPointOptions
Source§impl Debug for NearestPointOptions
impl Debug for NearestPointOptions
Source§impl<'de> Deserialize<'de> for NearestPointOptions
impl<'de> Deserialize<'de> for NearestPointOptions
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 NearestPointOptions
impl JsonSchema for NearestPointOptions
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 moreSource§impl PartialEq for NearestPointOptions
impl PartialEq for NearestPointOptions
Source§impl Serialize for NearestPointOptions
impl Serialize for NearestPointOptions
impl StructuralPartialEq for NearestPointOptions
Auto Trait Implementations§
impl Forget for NearestPointOptions
impl Freeze for NearestPointOptions
impl Move for NearestPointOptions
impl RefUnwindSafe for NearestPointOptions
impl Send for NearestPointOptions
impl Sync for NearestPointOptions
impl Unpin for NearestPointOptions
impl UnsafeUnpin for NearestPointOptions
impl UnwindSafe for NearestPointOptions
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