Install
dotnet add package nkast.Xna.Framework --version 4.3.9001
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard | |
| Other |
README
Xna.Framework
Core mathematical and foundational types for the KNI game framework.
Overview
The Xna.Framework package provides essential mathematical primitives and base types. It includes:
- Mathematical Types: Vector2, Vector3, Vector4, Matrix, Quaternion, Complex
- Geometric Shapes: BoundingBox, BoundingSphere, BoundingFrustum, Rectangle, Point, Ray, Plane
- Animation Support: Curve, CurveKey, CurveKeyCollection, Pose2D, Pose3D
- Framework Dispatcher: Event loop management
Installation
dotnet add package nkast.Xna.Framework
Quick Start
using Microsoft.Xna.Framework;
// Create vectors
Vector3 pos = new Vector3(10, 20, 30);
Vector3 direction = Vector3.Normalize(pos);
// Work with matrices
Matrix world = Matrix.Identity;
world.Translation = pos;
// Use bounding volumes
BoundingSphere sphere = new BoundingSphere(pos, 5f);
ContainmentType containment = sphere.Contains(pos);
Changes from Previous Version
No structural changes between v4.2.9001 and v4.3.9001.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.