sfml.js
    Preparing search index...

    Class Vector3f

    三个 float32 分量组成的向量。

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    "[mutableValue]": true

    Accessors

    • get "[vector3Native]"(): NativeValueHandle<"vector3">

      Returns NativeValueHandle<"vector3">

    • get "[vector3Storage]"(): ScalarArray<T>

      Returns ScalarArray<T>

    • get scalarType(): T

      分量使用的标量存储类型。

      Returns T

    • get x(): Scalar<T>

      X 分量;写入按 scalarType 对应的 TypedArray 规则转换。

      Returns Scalar<T>

    • set x(value: Scalar<T>): void

      设置 X 分量。

      Parameters

      • value: Scalar<T>

      Returns void

    • get y(): Scalar<T>

      Y 分量;写入按 scalarType 对应的 TypedArray 规则转换。

      Returns Scalar<T>

    • set y(value: Scalar<T>): void

      设置 Y 分量。

      Parameters

      • value: Scalar<T>

      Returns void

    • get z(): Scalar<T>

      Z 分量;写入按 scalarType 对应的 TypedArray 规则转换。

      Returns Scalar<T>

    • set z(value: Scalar<T>): void

      设置 Z 分量。

      Parameters

      • value: Scalar<T>

      Returns void

    Methods