Tagged articles
7 articles
Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Mar 25, 2024 · Game Development

Implementing Automatic Missile Tracking in Python with Pygame

This article explains the mathematics and step‑by‑step Python pygame implementation of an automatic missile‑tracking algorithm for shooting games, covering time‑slice calculations, trigonometric direction computation, and image rotation handling to keep the missile tip aligned with the target.

Game DevelopmentMissile TrackingPygame
0 likes · 8 min read
Implementing Automatic Missile Tracking in Python with Pygame
Model Perspective
Model Perspective
Dec 24, 2023 · Fundamentals

Unlocking Trigonometry: Sine, Cosine Laws and Half-Angle Tricks for Real-World Modeling

This article explores the core trigonometric theorems—the sine and cosine laws—and the universal half-angle substitution, illustrating their mathematical foundations and diverse applications ranging from geographic distance calculations to acoustic wave modeling, electrical circuits, and architectural design.

Applicationscosine lawhalf-angle substitution
0 likes · 5 min read
Unlocking Trigonometry: Sine, Cosine Laws and Half-Angle Tricks for Real-World Modeling
21CTO
21CTO
Mar 6, 2022 · Game Development

How to Build a Missile Auto‑Tracking System in Python with Pygame

This article explains how to implement an automatic missile‑tracking system for a shooting game using Python’s Pygame library, covering the underlying differential‑equation‑based algorithm, step‑by‑step trigonometric calculations, handling of coordinate systems, image rotation challenges, and provides complete source code.

Game DevelopmentMissile TrackingPygame
0 likes · 11 min read
How to Build a Missile Auto‑Tracking System in Python with Pygame
Laravel Tech Community
Laravel Tech Community
Jan 9, 2021 · Backend Development

Master PHP’s atan2() Function: Compute Angles with Two Arguments

This article explains PHP’s atan2() function, detailing its signature, parameter meanings, return value, and provides multiple code examples that demonstrate how different x‑and y‑coordinate pairs produce specific radian results, helping developers correctly compute angles in backend applications.

BackendPHPatan2
0 likes · 2 min read
Master PHP’s atan2() Function: Compute Angles with Two Arguments