神岛 API 文档 - ArenaPro版
    Preparing search index...

    三维向量 & RGB颜色

    3D Vector & RGB Color

    Index

    Properties

    b g r x y z

    Methods

    Properties

    b: number

    Vec3的b颜色值。范围:0-255

    The b color value of the Vec3. Range: 0-255

    g: number

    Vec3的g颜色值。范围:0-255

    The g color value of the Vec3. Range: 0-255

    r: number

    Vec3的r颜色值。范围:0-255

    The r color value of the Vec3. Range: 0-255

    x: number

    Vec3的x坐标。

    The x-coordinate of the Vec3.

    y: number

    Vec3的y坐标。

    The y-coordinate of the Vec3.

    z: number

    Vec3的z坐标。

    The z-coordinate of the Vec3.

    Methods

    • Parameters

      Returns void

      复制给定的Vec3的x和y到当前Vec3。

      Copies the x and y of the given Vec3 to the current Vec3.

      节点坐标数据。

      Node coordinate data.

    • Parameters

      • Optionalval: Vec3 | { x: number; y: number; z: number } | { b: number; g: number; r: number }

      Returns Vec3

      创建并返回一个新的Vec3。如果提供了一个Vec3作为参数,新的Vec3的x、y和z将被设置为给定Vec3的x、y和z。如果没有提供参数,新的Vec3的x、y和z将被设置为0。

      Creates and returns a new Vec3. If a Vec3 is provided as an argument, the new Vec3's x, y, and z will be set to the given Vec3's x, y, and z. If no argument is provided, the new Vec3's x, y, and z will be set to 0.

      节点坐标数据。

      Node coordinate data.