Class (GI Struct)

Graphene-1.0GrapheneVec4

A structure capable of holding a vector with four dimensions: x, y, z, and w.

The contents of the Graphene.Vec4 structure are private and should never be accessed directly.

Index

Constructors

Properties

$gtype: GType<Vec4>

Methods

  • Initializes a Graphene.Vec4 using the given values.

    This function can be called multiple times.

    Parameters

    • x: number

      the X field of the vector

    • y: number

      the Y field of the vector

    • z: number

      the Z field of the vector

    • w: number

      the W field of the vector

    Returns Vec4

    a pointer to the initialized vector