Struct optimization_engine::constraints::Ball2[][src]

pub struct Ball2<'a> { /* fields omitted */ }
Expand description

A Euclidean ball, that is, a set given by $B_2^r = \{x \in \mathbb{R}^n {}:{} \Vert{}x{}\Vert \leq r\}$ or a Euclidean ball centered at a point $x_c$, that is, $B_2^{x_c, r} = \{x \in \mathbb{R}^n {}:{} \Vert{}x-x_c{}\Vert \leq r\}$

Implementations

Construct a new Euclidean ball with given center and radius If no center is given, then it is assumed to be in the origin

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Projection onto the set, that is, Read more

Returns true if and only if the set is convex

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.