VECTOR

Definition

VECTOR [id]
{
  [Common flags]
  [MIN minval;]
  [MINEX;]
  [MAX maxval;]
  [MAXEX;]
  [STEP step;]
  [UNIT REAL | PERCENT | DEGREE | METER | TIME;]
}
						

描述

Represents 向量 values in a container. Rendered as 3 numerical edit fields.

注意
If a value represents a color then use COLOR instead.

Flags

MIN minval; The minimum value.
MINEX; The minimum value itself is not allowed. (Strict inequality.)
MAX maxval; The maximum value.
MAXEX; The maximum value itself is not allowed. (Strict inequality.)
STEP step; The step for the edit field arrows.
UNIT REAL | PERCENT | DEGREE | METER | TIME; The display unit.

范例

VECTOR PERCENTAGE_VECTOR { UNIT PERCENT; MIN 0.0; MAX 100.0; }
VECTOR METER_VECTOR { MIN 0 0 0; UNIT METER; }
VECTOR NONZERO_VECTOR { UNIT REAL; MINEX; MIN 0.0; }
						

延伸阅读