Vec4_d.kl

Types

Vec4_d (struct)

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

注釈

Vec4_d utilizes the KL ベクタ関数

参考

Vec2, Vec3_d

/*
** Example: Vec4_d
*/

Vec4_d v(0.0, 0.0, 0.0, 0.0);

Members

Float64 x  
Float64 y  
Float64 z  
Float64 t  

Methods

  Vec4_d ( in Float64 value )
  Vec4_d ( in Float64 x, in Float64 y, in Float64 z, in Float64 t )
  Vec4_d ( in Vec4_d other )
  Vec4_d ()
Vec4_d add ? ( in Vec4_d other )
Boolean almostEqual ? ( in Vec4_d other )
Boolean almostEqual ? ( in Vec4_d other, in Float64 precision )
Float64 angleTo ? ( in Vec4_d other )
Vec4_d clamp ? ( in Vec4_d min, in Vec4_d max )
Vec4_d clone ? ()
Float64 component ? ( in Size i )
Float64 distanceTo ? ( in Vec4_d other )
Vec4_d divide ? ( in Vec4_d other )
Vec4_d divideFloat64 ? ( in Float64 other )
Float64 dot ? ( in Vec4_d other )
Boolean equal ? ( in Vec4_d 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_d inverse ? ()
Float64 length ? ()
Float64 lengthSquared ? ()
Vec4_d linearInterpolate ? ( in Vec4_d other, in Float64 t )
Vec3_d makeHomogeneousVec3_d ? ()
Vec4_d multiply ? ( in Vec4_d other )
Vec4_d multiplyFloat64 ? ( in Float64 other )
Vec4_d 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 Float64 value )
  set ! ( in Float64 x, in Float64 y, in Float64 z, in Float64 t )
  set ! ( in Vec3_d v )
  setComponent ! ( in Size i, in Float64 v )
  setNull ! ()
Float64 setUnit ! ()
Vec4_d subtract ? ( in Vec4_d other )
Vec3_d toVec3_d ? ()
Vec4_d unit ? ()
Float64 unitsAngleTo ? ( in Vec4_d other )
Vec3_d xyz ? ()

Operators

Vec4_d = ( 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_d

Vec4_d mathRandomVec4_d ( in Size seed, in Size index, in Float32 min, in Float32 max )