Vec4_i.kl

Types

Vec4_i (struct)

The Vec4_i type represents a vector with 4 components. The Vec4_i is also used as the row type for the Mat44.

注釈

Vec4_i utilizes the KL ベクタ関数

参考

Vec2, Vec3_i

/*
** Example: Vec4_i
*/

Vec4_i v(0.0, 0.0, 0.0, 0.0);

Members

SInt32 x  
SInt32 y  
SInt32 z  
SInt32 t  

Methods

  Vec4_i ( in SInt32 value )
  Vec4_i ( in SInt32 x, in SInt32 y, in SInt32 z, in SInt32 t )
  Vec4_i ( in Vec4_i other )
  Vec4_i ()
Vec4_i add ? ( in Vec4_i other )
Boolean almostEqual ? ( in Vec4_i other )
Boolean almostEqual ? ( in Vec4_i other, in SInt32 precision )
SInt32 angleTo ? ( in Vec4_i other )
Vec4_i clamp ? ( in Vec4_i min, in Vec4_i max )
Vec4_i clone ? ()
SInt32 component ? ( in Size i )
SInt32 distanceTo ? ( in Vec4_i other )
Vec4_i divide ? ( in Vec4_i other )
Vec4_i divideSInt32 ? ( in SInt32 other )
SInt32 dot ? ( in Vec4_i other )
Boolean equal ? ( in Vec4_i other )
  get ? ( io Float32 v<> )
  get ? ( io Float32 v<>, in UInt32 o )
  get ? ( io Float32 v[] )
  get ? ( io Float32 v[], in UInt32 o )
  get ? ( io Float64 v<> )
  get ? ( io Float64 v<>, in UInt32 o )
  get ? ( io Float64 v[] )
  get ? ( io Float64 v[], in UInt32 o )
UInt32 hash ? ()
Vec4_i inverse ? ()
SInt32 length ? ()
SInt32 lengthSquared ? ()
Vec4_i linearInterpolate ? ( in Vec4_i other, in SInt32 t )
Vec3_i makeHomogeneousVec3_i ? ()
Vec4_i multiply ? ( in Vec4_i other )
Vec4_i multiplySInt32 ? ( in SInt32 other )
Vec4_i negate ? ()
  normalize ! ()
  set ! ( in Float32 v<> )
  set ! ( in Float32 v<>, in UInt32 o )
  set ! ( in Float64 v<> )
  set ! ( in Float64 v<>, in UInt32 o )
  set ! ( in SInt32 value )
  set ! ( in SInt32 x, in SInt32 y, in SInt32 z, in SInt32 t )
  set ! ( in Vec3_i v )
  setComponent ! ( in Size i, in SInt32 v )
  setNull ! ()
SInt32 setUnit ! ()
Vec4_i subtract ? ( in Vec4_i other )
Vec3_i toVec3_i ? ()
Vec4_i unit ? ()
SInt32 unitsAngleTo ? ( in Vec4_i other )
Vec3_i xyz ? ()

Operators

Vec4_i = ( Param other )

Functions

Math_min

RGBA Math_min ( in RGBA val1, in RGBA val2 )

Returns the minimum of two RGBA values

Math_max

RGBA Math_max ( in RGBA val1, in RGBA val2 )

Returns the minimum of two RGBA values

Math_clamp

Vec3_i Math_clamp ( in Vec3_i val, in Scalar minval, in Scalar maxval )

Clamps a Vec3_i value by min and max

mathRandomVec4_i

Vec4_i mathRandomVec4_i ( in Size seed, in Size index, in Float32 min, in Float32 max )