Gjsify LogoGjsify Logo

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

The contents of the #graphene_vec3_t structure are private and should never be accessed directly.

record

Hierarchy

  • Vec3

Index

Constructors

Properties

name: string

Methods

  • free(): void
  • get_x(): number
  • get_xyzw(w: number): Vec4
  • Converts a #graphene_vec3_t in a #graphene_vec4_t using w as the value of the fourth component of the resulting vector.

    Parameters

    • w: number

      the value of the W component

    Returns Vec4

  • get_y(): number
  • get_z(): number
  • Initializes a #graphene_vec3_t 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 Graphene.Vec3

  • length(): number
  • Compares the two given #graphene_vec3_t vectors and checks whether their values are within the given epsilon.

    Parameters

    • v2: Graphene.Vec3

      a #graphene_vec3_t

    • epsilon: number

      the threshold between the two vectors

    Returns boolean

  • to_float(): number[]

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method