Download Now

    Reference Vec

    Declared in Codebot.Geometry.pas on lines 186, 187, 188, 189, 190, 191

    Build a vector from components or extend a smaller vector with more components. The result size is determined by the number of components.
    function Vec(const X, Y: Float): TVec2; overload; inline;
    function Vec(const X, Y, Z: Float): TVec3; overload; inline;
    function Vec(const X, Y, Z, W: Float): TVec4; overload; inline;
    function Vec(const V: TVec2; Z: Float): TVec3; overload; inline;
    function Vec(const V: TVec2; Z, W: Float): TVec4; overload; inline;
    function Vec(const V: TVec3; W: Float): TVec4; overload; inline;

    See also

    Float in Codebot.System.pas