Class (GI Struct)

Graphene-1.0GraphenePoint3DSince 1.0

A point with three components: X, Y, and Z.

1.0

Index

Constructors

Properties

x: number
y: number
z: number
$gtype: GType<Point3D>

Methods

  • Normalizes the coordinates of a Graphene.Point3D using the given viewport and clipping planes.

    The coordinates of the resulting Graphene.Point3D will be in the [ -1, 1 ] range.

    Parameters

    • viewport: Graphene.Rect

      a Graphene.Rect representing a viewport

    • z_near: number

      the coordinate of the near clipping plane, or 0 for the default near clipping plane

    • z_far: number

      the coordinate of the far clipping plane, or 1 for the default far clipping plane

    Returns Point3D