Click or drag to resize

Vec4 Structure

返回用户文档首页
Inheritance Hierarchy
SystemObject
  SystemValueType
    LoongCAD.GeometryVec4

Namespace: LoongCAD.Geometry
Assembly: LoongSDKCore (in LoongSDKCore.dll) Version: 0.8.15.0 (0.8.15.0)
Syntax
C#
[SerializableAttribute]
public struct Vec4

The Vec4 type exposes the following members.

Constructors
 NameDescription
Public methodVec4(Vec4) 通过复制另一个 Vec4 实例来初始化一个新的 Vec4 结构体实例。
Public methodVec4(Vec3, Double) 通过三维向量和W坐标来初始化一个新的 Vec4 结构体实例。
Public methodVec4(Double, Double, Double, Double) 初始化一个新的 Vec4 结构体实例。
Top
Properties
 NameDescription
Public propertyItem 获取或设置向量的指定分量。
Public propertyLength 获取当前向量的长度。
Public propertyLengthSqr 获取当前向量长度的平方。
Public propertyXY 获取或设置由X和Y坐标组成的二维向量。
Public propertyXYZ 获取或设置由X、Y和Z坐标组成的三维向量。
Public propertyXZ 获取或设置由X和Z坐标组成的二维向量。
Public propertyYZ 获取或设置由Y和Z坐标组成的二维向量。
Public propertyZW 获取或设置由Z和W坐标组成的二维向量。
Top
Methods
 NameDescription
Public methodEquals 检查当前的 Vec4 对象是否与指定的对象相等。
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode 作为当前 Vec4 对象的哈希函数。
(Overrides ValueTypeGetHashCode)
Public methodNormalize 标准化当前 Vec4 对象。
Public methodSet 设置当前 Vec4 对象的坐标。
Public methodToString 将当前 Vec4 对象的坐标转换为其字符串表示形式。
(Overrides ValueTypeToString)
Top
Operators
Fields
 NameDescription
Public fieldStatic memberAXIS_X 表示X轴方向的四维单位向量 (1.0, 0.0, 0.0, 1.0)。
Public fieldStatic memberAXIS_Y 表示Y轴方向的四维单位向量 (0.0, 1.0, 0.0, 1.0)。
Public fieldStatic memberAXIS_Z 表示Z轴方向的四维单位向量 (0.0, 0.0, 1.0, 1.0)。
Public fieldStatic memberIDENTITY 表示四维单位向量 (0.0, 0.0, 0.0, 1.0)。
Public fieldStatic memberMAX 表示具有最大双精度浮点数值的四维向量 (Double.MaxValue, Double.MaxValue, Double.MaxValue, Double.MaxValue)。
Public fieldStatic memberMIN 表示具有最小双精度浮点数值的四维向量 (Double.MinValue, Double.MinValue, Double.MinValue, Double.MinValue)。
Public fieldW 
Public fieldX 
Public fieldY 
Public fieldZ 
Public fieldStatic memberZERO 表示四维零向量 (0.0, 0.0, 0.0, 0.0)。
Top
See Also