コンテンツにスキップ

Vec3

このコンテンツはまだ日本語訳がありません。

Defined in: frame.rs:316

pub struct Vec3\<F\>

Frame-tagged 3D vector.

PhantomData<F> はゼロサイズなのでメモリレイアウトは Vector3<f64> と同一。 同一フレーム内の演算のみ許可され、異フレーム間の直接操作は compile error。

fn to_geodetic(&self) -> Geodetic

Convert this Earth-fixed Cartesian vector to WGS-84 geodetic coordinates via Bowring iteration.

Available on any Vec3<F> where F implements the frame::Ecef category trait — currently crate::frame::SimpleEcef, crate::frame::Tirs, and crate::frame::Itrs. Tirs / Itrs variants require the caller to have already applied the appropriate IAU 2006 rotation chain (Phase 3B Rotation<Gcrs, Itrs>::iau2006_full_from_utc or similar) to produce an Itrs vector.


fn new(x: f64, y: f64, z: f64) -> Self

成分から構築。


fn from_raw(v: Vector3<f64>) -> Self

生の Vector3<f64> から構築。


fn zeros() -> Self

ゼロベクトル。


fn inner(&self) -> &Vector3<f64>

内部の Vector3<f64> への参照。


fn into_inner(self) -> Vector3<f64>

内部の Vector3<f64> を消費して返す。


fn x(&self) -> f64


fn y(&self) -> f64


fn z(&self) -> f64


fn magnitude(&self) -> f64

ベクトルの大きさ。


fn magnitude_squared(&self) -> f64

大きさの 2 乗。


fn normalize(&self) -> Self

正規化(単位ベクトル化)。


fn dot(&self, other: &Self) -> f64

内積。


fn cross(&self, other: &Self) -> Self

外積(同一フレーム内)。


fn is_finite(&self) -> bool

全成分が有限か。


const fn frame_descriptor() -> FrameDescriptor

Frame descriptor (runtime identification).