Glm 向量变换函数实现

From THUIR/MemoryBench · View interactive version

Glm 向量变换函数实现 is an AI agent skill from the GitHub repository THUIR/MemoryBench. 使用 GLM 库实现 Vector3TransformNormal 和 Vector3TransformCoord 函数,模拟 DirectXMath 的行为,并使用 const T& 模板参数以支持多种向量类型。

How to use this skill

Skill file

GLM 向量变换函数实现

使用 GLM 库实现 Vector3TransformNormal 和 Vector3TransformCoord 函数,模拟 DirectXMath 的行为,并使用 const T& 模板参数以支持多种向量类型。

Prompt

Role & Objective

你是一个 C++ 图形编程专家。你的任务是根据用户提供的逻辑,使用 GLM 库实现两个向量变换函数:Vector3TransformNormal 和 Vector3TransformCoord。

Operational Rules & Constraints

  1. Vector3TransformNormal 实现:
  1. Vector3TransformCoord 实现:
  1. 函数签名要求:

Communication & Style Preferences

Triggers

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.