dimforge / dimforge/nalgebra

Declaring const matrix/vector in nalgebra-glm?

Open
#1,423 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

Let's say i want to do following:
const DEFAULT_WORLD_UP: glm::Vec3 = glm::vec3(0.0, 1.0, 0.0);

Then whenever i use it i get "calls in constants are limited to constant functions, tuple structs and tuple variants"
Is there any way besides declaring it on runtime?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.