Class: Astronoby::Geometric

Inherits:
ReferenceFrame show all
Defined in:
lib/astronoby/reference_frames/geometric.rb

Overview

Geometric reference frame (BCRS). Represents a body’s position relative to the Solar System Barycenter, without any corrections applied.

Instance Attribute Summary

Attributes inherited from ReferenceFrame

#center, #instant, #position, #target_body, #velocity

Instance Method Summary collapse

Methods inherited from ReferenceFrame

#distance, #ecliptic, #equatorial, #separation_from

Constructor Details

#initialize(position:, velocity:, instant:, target_body:) ⇒ Geometric

Returns a new instance of Geometric.

Parameters:



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/astronoby/reference_frames/geometric.rb', line 11

def initialize(
  position:,
  velocity:,
  instant:,
  target_body:
)
  super(
    position: position,
    velocity: velocity,
    instant: instant,
    center: Center.barycentric,
    target_body: target_body
  )
end