Vec_i.kl

Types

Vec_i (struct)

The Vec_i represents a dense vector.

/*
** Example: Vec_i
*/

// create a 7-element vector
Vec_i vec(7);

Members

SInt32[] vals  

Methods

  Vec_i ( in Integer size )
  Vec_i ( in Vec_i that )
  Vec_i ()
Boolean almostEqual ? ( in Vec_i other )
Boolean almostEqual ? ( in Vec_i that, in SInt32 precision )
  appendDesc ? ( io String string )
Vec_i clamp ? ( in Vec_i min, in Vec_i max )
Vec_i clone ? ()
SInt32 dot ? ( in Vec_i that )
Boolean equal ? ( in Vec_i that )
SInt32 get ? ( in Integer ind )
UInt32 hash ? ()
Vec_i head ? ( in Integer n )
SInt32 length ? ()
SInt32 lengthSquared ? ()
Vec_i linearInterpolate ? ( in Vec_i that, in SInt32 t )
  normalize ! ()
  resize ! ( in Integer newSize )
  set ! ( in Integer ind, in SInt32 val )
  setAll ! ( in SInt32 val )
  setNull ! ()
SInt32 setUnit ! ()
Integer size ? ()
String sizeDesc ? ()
Vec_i sub ? ( in Integer s, in Integer e )
Vec_i unit ? ()
Integer validateSize ? ( in Vec_i that, in String desc )

Operators

  - Vec_i
Vec_i = ( Param other )