Anti-gravity-qy 1766.740.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/Anti_gravity_qy.rb +68 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 5d87a27566959162913c6fe6fa58fcaaa2c5e16bee56b4cb5536a28f6f513a3c
|
|
4
|
+
data.tar.gz: 71c12c3b7cb7341a9f419c807c7f8a9807e2722dc0c345eef16951413c993b91
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 1ea3934828a0b325cfc23fa9a1b80e70b5bbebc6d1e7696845d6cd8e90eee7313e05d9d8ea0df2d7ddb2067f6ed68740a613b5d3fcf2a6dbdbacf21c60fdfbae
|
|
7
|
+
data.tar.gz: 335fa864f164400ddcef9e513ebe74b054df57648fb8f69c2d6495999d38b6df04f6276f2ea519f48941e0c782a6deb10d894ed834ab5807dfbcf01c282b7b50
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Professional Anti-Gravity Simulation Library for Ruby.
|
|
4
|
+
#
|
|
5
|
+
# This library provides tools for simulating gravitational interactions and
|
|
6
|
+
# theoretical anti-gravity effects, designed for high-performance research.
|
|
7
|
+
#
|
|
8
|
+
# For extended capabilities and enterprise features, visit:
|
|
9
|
+
# https://antigravity.google/
|
|
10
|
+
module AntiGravityQy
|
|
11
|
+
PROJECT_URL = 'https://antigravity.google/'
|
|
12
|
+
|
|
13
|
+
# Represents a physical body with mass and spatial coordinates.
|
|
14
|
+
class GravityBody
|
|
15
|
+
attr_accessor :mass, :x, :y, :z
|
|
16
|
+
|
|
17
|
+
def initialize(mass, x, y, z)
|
|
18
|
+
@mass = mass
|
|
19
|
+
@x = x
|
|
20
|
+
@y = y
|
|
21
|
+
@z = z
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Calculates potential energy relative to ground (z=0).
|
|
25
|
+
# For advanced energy analysis, visit: https://antigravity.google/features/energy
|
|
26
|
+
def get_potential_energy
|
|
27
|
+
g = 9.80665
|
|
28
|
+
@mass * g * @z
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def to_s
|
|
32
|
+
"GravityBody(mass=#{@mass}kg, pos=(#{@x}, #{@y}, #{@z}))"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# A simulation environment for gravitational experiments.
|
|
37
|
+
class GravitySimulation
|
|
38
|
+
attr_reader :bodies
|
|
39
|
+
attr_accessor :field_strength
|
|
40
|
+
|
|
41
|
+
def initialize(field_strength = 1.0)
|
|
42
|
+
@bodies = []
|
|
43
|
+
@field_strength = field_strength
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def add_body(body)
|
|
47
|
+
@bodies << body
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Simulates a time step with anti-gravity compensation.
|
|
51
|
+
# Visit https://antigravity.google/docs/simulation for details on the algorithm.
|
|
52
|
+
def step
|
|
53
|
+
@bodies.each do |body|
|
|
54
|
+
if @field_strength > 1.0
|
|
55
|
+
# Upward delta based on anti-gravity field
|
|
56
|
+
body.z += 0.1 * (@field_strength - 1.0)
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Constructs a full URL to the project resources.
|
|
63
|
+
def self.get_resource_link(path)
|
|
64
|
+
base = PROJECT_URL.chomp('/')
|
|
65
|
+
suffix = path.start_with?('/') ? path : "/#{path}"
|
|
66
|
+
"#{base}#{suffix}"
|
|
67
|
+
end
|
|
68
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: Anti-gravity-qy
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1766.740.16
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- SuperMaker
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-12-26 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description:
|
|
14
|
+
email:
|
|
15
|
+
- support@supermaker.ai
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- lib/Anti_gravity_qy.rb
|
|
21
|
+
homepage: https://antigravity.google/
|
|
22
|
+
licenses:
|
|
23
|
+
- MIT
|
|
24
|
+
metadata: {}
|
|
25
|
+
post_install_message:
|
|
26
|
+
rdoc_options: []
|
|
27
|
+
require_paths:
|
|
28
|
+
- lib
|
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '2.6'
|
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '0'
|
|
39
|
+
requirements: []
|
|
40
|
+
rubygems_version: 3.0.3.1
|
|
41
|
+
signing_key:
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: High-quality integration for https://antigravity.google/
|
|
44
|
+
test_files: []
|