pub struct Vector3 {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
A three-component vector — std/geometry/v1/Vector3.
Fields§
§x: f64The x component.
y: f64The y component.
z: f64The z component.
Implementations§
Source§impl Vector3
impl Vector3
Sourcepub const fn from_array(values: [f64; 3]) -> Self
pub const fn from_array(values: [f64; 3]) -> Self
A vector from an xyz array.
Sourcepub fn layout() -> DataType
pub fn layout() -> DataType
The columnar layout of this type, shared with every composite that embeds it.
Trait Implementations§
Source§impl AstrsMessage for Vector3
impl AstrsMessage for Vector3
Source§const URN: &'static str = "std/geometry/v1/Vector3"
const URN: &'static str = "std/geometry/v1/Vector3"
The type URN this message’s columnar layout is declared against
(blueprint §24.3), e.g.
"std/vision/v1/Detections".Source§fn data_type() -> DataType
fn data_type() -> DataType
The columnar layout
AstrsMessage::to_record_batch produces and
AstrsMessage::from_record_batch expects.Source§fn to_record_batch(&self) -> Result<RecordBatch>
fn to_record_batch(&self) -> Result<RecordBatch>
Encodes one message into a one-row
RecordBatch (blueprint §6.1’s
“one record batch per message”). Read moreSource§fn from_record_batch(batch: &RecordBatch) -> Result<Self>
fn from_record_batch(batch: &RecordBatch) -> Result<Self>
Decodes one message from a one-row
RecordBatch. Read moreSource§fn schema() -> Schema
fn schema() -> Schema
The single-column
Schema wrapping AstrsMessage::data_type
under crate::DATA_COLUMN (blueprint §6.1).Source§fn type_urn() -> Result<TypeUrn, TypeUrnError>
fn type_urn() -> Result<TypeUrn, TypeUrnError>
Parses
AstrsMessage::URN. Read moreimpl Copy for Vector3
Source§impl FromPayload for Vector3
impl FromPayload for Vector3
Source§fn from_batch(batch: &RecordBatch) -> Result<Self>
fn from_batch(batch: &RecordBatch) -> Result<Self>
Reads the value from a decoded payload batch. Read more
Source§impl PartialOrd for Vector3
impl PartialOrd for Vector3
impl StructuralPartialEq for Vector3
Auto Trait Implementations§
impl Freeze for Vector3
impl RefUnwindSafe for Vector3
impl Send for Vector3
impl Sync for Vector3
impl Unpin for Vector3
impl UnsafeUnpin for Vector3
impl UnwindSafe for Vector3
Blanket Implementations§
impl<T> Allocation for T
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