Class (GI Struct)

Graphene-1.0GrapheneVec3

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

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

Index

Constructors

Properties

$gtype: GType<Vec3>

Methods

  • Retrieves the first component of the given vector v.

    Returns number

    the value of the first component of the vector

  • Retrieves the second component of the given vector v.

    Returns number

    the value of the second component of the vector

  • Retrieves the third component of the given vector v.

    Returns number

    the value of the third component of the vector

  • Initializes a Graphene.Vec3 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

    Returns Vec3

    a pointer to the initialized vector