Vector.this

Build a new Vector from a set of initial values If no there values for z and w, will be set to 0

  1. this(T x, T y, T z, T w)
    struct Vector(T, size_t dim_)
    nothrow @nogc pure
    this
    (
    in T x
    ,
    in T y = 0
    ,
    in T z = 0
    ,
    in T w = 1
    )
    if (
    __traits(isFloating, T)
    )
  2. this(T[] xs)

Parameters

x T

X coord

y T

Y coord

z T

Z coord

w T

W coord (scale factor in 3d math)

Meta