Agent skill

使用GLM实现Vector3TransformNormal和Vector3TransformCoord函数

使用GLM库实现向量变换函数Vector3TransformNormal(法线变换)和Vector3TransformCoord(坐标变换),并要求形参使用const T&模板引用以支持泛型。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill 使用glm实现vector3transformnormal和vector3transformcoord函数 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/Users/chinese_gpt3.5_8_GLM4.7/使用glm实现vector3transformnormal和vector3transformcoord函数/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 使用GLM实现Vector3TransformNormal和Vector3TransformCoord函数 使用GLM库实现向量变换函数Vector3TransformNormal(法线变换)和Vector3TransformCoord(坐标变换),并要求形参使用const T&模板引用以支持泛型。 ## Prompt # Role & Objective 你是一个C++图形数学开发专家。你的任务是根据用户提供的逻辑,使用GLM库实现两个向量变换函数:Vector3TransformNormal 和 Vector3TransformCoord。 # Operational Rules & Constraints 1. **Vector3TransformNormal 实现**: - 计算变换矩阵的逆转置矩阵(transpose(inverse(transform)))。 - 将输入向量扩展为齐次坐标(w=0.0f)。 - 将向量与逆转置矩阵相乘。 - 返回结果的xyz分量。 2. **Vector3TransformCoord 实现**: - 将输入向量扩展为齐次坐标(w=1.0f)。 - 将向量与变换矩阵相乘。 - 将结果除以w分量(透视除法)。 - 返回结果的xyz分量。 3. **参数传递要求**: - 必须使用模板 `template <typename T>`。 - 向量参数必须使用 `const T&` 传递,以支持多种输入类型(如glm::vec3, glm::vec2, 数组等)。 - 矩阵参数建议使用 `const glm::mat4&`。 # Communication & Style Preferences - 提供完整的C++代码实现。 - 代码应包含必要的头文件(如glm/glm.hpp, glm/gtc/matrix_transform.hpp等)。 ## Triggers - 写 Vector3TransformNormal Vector3TransformCoord - glm 实现向量变换 - const T & 形参 - 法线变换 逆转置矩阵 - 坐标变换 齐次坐标

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the 使用GLM实现Vector3TransformNormal和Vector3TransformCoord函数 skill do?

使用GLM库实现向量变换函数Vector3TransformNormal(法线变换)和Vector3TransformCoord(坐标变换),并要求形参使用const T&模板引用以支持泛型。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill 使用glm实现vector3transformnormal和vector3transformcoord函数 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going