PointF 构造函数
Represents a single-precision floating-point 2D point with geometric operations
表示具有几何运算的单精度浮点二维点
命名空间: DeploySharp.Data程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
public PointF(
float X,
float Y
)
参数
- X Single
[缺少 "M:DeploySharp.Data.PointF.#ctor(System.Single,System.Single)" 的 <param name="X"/> 文档]
- Y Single
[缺少 "M:DeploySharp.Data.PointF.#ctor(System.Single,System.Single)" 的 <param name="Y"/> 文档]
Optimized for graphics programming where high performance with moderate precision is required.
Provides all essential vector operations while maintaining memory efficiency.
针对需要中等精度高性能的图形编程而优化,
提供了所有必要的向量运算,同时保持内存效率。
Basic usage:
var pointA = new PointF(1.5f, 2.5f);
var pointB = new PointF(3.0f, 4.0f);
float distance = (float)pointA.DistanceTo(pointB);
PointF sum = pointA + pointB;