Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rtm

> 编程语言
Open source

Realtime Math

796 stars0 likes0 views
WebsiteGitHub

About

Realtime Math

Realtime Math

This library is geared towards realtime applications that require their math to be as fast as possible. Much care was taken to maximize inlining opportunities and for code generation to be optimal when a function isn't inlined by passing values in registers whenever possible. It contains 3D and 4D arithmetic commonly used in video games and realtime applications.

It offers an alternative to GLM and DirectX Math. See here for a comparison with similar libraries.

Philosophy

Much thought was put into designing the library for it to be as flexible and powerful as possible. To this end, the following decisions were made:

  • The library consists of 100% C++11 header files and is thus easy to integrate in any project
  • The interface follows C-style conventions to ensure optimal code generation
  • Both float32 and float64 arithmetic are supported
  • Row vectors are used
  • See here for more details

Supported platforms

Continuous integration tests a variety of platforms and configurations but it generally runs as-is anywhere where C++11 (or later) is supported. CI currently tests:

  • Windows VS2022: x86, x64, ARM64, ARM64EC
  • Linux GCC 12+: x86, x64
  • Linux Clang 15+: x86, x64
  • OS X XCode 15+: ARM64
  • Emscripten 1.39.11: WASM

RISC-V/riscv64 currently uses the generic scalar path and does not enable SSE/AVX/NEON intrinsics. Native make.py -cpu riscv64 builds are supported on Linux riscv64 hosts; cross-compilation should be performed with CMake and a proper RISC-V toolchain file.

Each releases is also manually tested on iOS and Android.

Getting started

This library is 100% headers as such you just need to include them in your own project to start using it. However, if you wish to run the unit tests or to contribute to RTM head on over to the getting started section in order to setup your environment and make sure to check out the contributing guidelines.

You can install rtm with Conan.

External dependencies

You don't need anything else to get started: everything is self contained. See here for details.

License, copyright, and code of conduct

This project uses the MIT license.

Copyright (c) 2018 Nicholas Frechette & Realtime Math contributors

This project was started from the math code found in the Animation Compression Library v1.1.0 and it retains the copyright of the original contributors.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

CodyDWJones

Malte Werschy

Yoann Potinet

Pavel Iatchenii

Herman Semenov

Martin Valgur

Kethers

This project follows the all-contributors specification. Contributions of any kind welcome!

Issues· 17 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++c-plus-pluscppgame-developmentgame-engine

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言