Class (GI Struct)

Graphene-1.0GraphenePlaneSince 1.2

A 2D plane that extends infinitely in a 3D volume.

The contents of the graphene_plane_t are private, and should not be modified directly.

1.2

Index

Constructors

Properties

$gtype: GType<Plane>

Methods

  • Initializes the given Graphene.Plane using the given normal vector and constant values.

    Parameters

    • normal: Vec3

      a unit length normal vector defining the plane pointing towards the origin; if unset, we use the X axis by default

    • constant: number

      the distance from the origin to the plane along the normal vector; the sign determines the half-space occupied by the plane

    Returns Plane

    the initialized plane