Vec3
このコンテンツはまだ日本語訳がありません。
Defined in: frame.rs:316
pub struct Vec3\<F\>Frame-tagged 3D vector.
PhantomData<F> はゼロサイズなのでメモリレイアウトは Vector3<f64> と同一。
同一フレーム内の演算のみ許可され、異フレーム間の直接操作は compile error。
Methods
Section titled “Methods”to_geodetic()
Section titled “to_geodetic()”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
成分から構築。
from_raw()
Section titled “from_raw()”fn from_raw(v: Vector3<f64>) -> Self
生の Vector3<f64> から構築。
zeros()
Section titled “zeros()”fn zeros() -> Self
ゼロベクトル。
inner()
Section titled “inner()”fn inner(&self) -> &Vector3<f64>
内部の Vector3<f64> への参照。
into_inner()
Section titled “into_inner()”fn into_inner(self) -> Vector3<f64>
内部の Vector3<f64> を消費して返す。
fn x(&self) -> f64
fn y(&self) -> f64
fn z(&self) -> f64
magnitude()
Section titled “magnitude()”fn magnitude(&self) -> f64
ベクトルの大きさ。
magnitude_squared()
Section titled “magnitude_squared()”fn magnitude_squared(&self) -> f64
大きさの 2 乗。
normalize()
Section titled “normalize()”fn normalize(&self) -> Self
正規化(単位ベクトル化)。
fn dot(&self, other: &Self) -> f64
内積。
cross()
Section titled “cross()”fn cross(&self, other: &Self) -> Self
外積(同一フレーム内)。
is_finite()
Section titled “is_finite()”fn is_finite(&self) -> bool
全成分が有限か。
frame_descriptor()
Section titled “frame_descriptor()”const fn frame_descriptor() -> FrameDescriptor
Frame descriptor (runtime identification).