Table of Contents

Class Box

Namespace
Graphene.Internal
Assembly
Graphene-1.0.dll
public class Box
Inheritance
Box
Inherited Members

Methods

Alloc()

Calls native constructor graphene_box_alloc. Version: 1.2

[Version("1.2")]
public static extern BoxOwnedHandle Alloc()

Returns

BoxOwnedHandle

Transfer ownership: Full Nullable: False

ContainsBox(BoxHandle, BoxHandle)

Calls native method graphene_box_contains_box. Version: 1.2

[Version("1.2")]
public static extern bool ContainsBox(BoxHandle a, BoxHandle b)

Parameters

a BoxHandle

Transfer ownership: None Nullable: False

b BoxHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ContainsPoint(BoxHandle, Point3DHandle)

Calls native method graphene_box_contains_point. Version: 1.2

[Version("1.2")]
public static extern bool ContainsPoint(BoxHandle box, Point3DHandle point)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

point Point3DHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Empty()

Calls native function graphene_box_empty. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle Empty()

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

Equal(BoxHandle, BoxHandle)

Calls native method graphene_box_equal. Version: 1.2

[Version("1.2")]
public static extern bool Equal(BoxHandle a, BoxHandle b)

Parameters

a BoxHandle

Transfer ownership: None Nullable: False

b BoxHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Free(BoxHandle)

Calls native method graphene_box_free. Version: 1.2

[Version("1.2")]
public static extern void Free(BoxHandle box)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

GetDepth(BoxHandle)

Calls native method graphene_box_get_depth. Version: 1.2

[Version("1.2")]
public static extern float GetDepth(BoxHandle box)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetGType()

Calls native function graphene_box_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetHeight(BoxHandle)

Calls native method graphene_box_get_height. Version: 1.2

[Version("1.2")]
public static extern float GetHeight(BoxHandle box)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetVertices(BoxHandle, Vec3ArrayHandle)

Calls native method graphene_box_get_vertices. Version: 1.2

[Version("1.2")]
public static extern void GetVertices(BoxHandle box, Vec3ArrayHandle vertices)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

vertices Vec3ArrayHandle

Transfer ownership: None Nullable: False

GetWidth(BoxHandle)

Calls native method graphene_box_get_width. Version: 1.2

[Version("1.2")]
public static extern float GetWidth(BoxHandle box)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

Infinite()

Calls native function graphene_box_infinite. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle Infinite()

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

Init(BoxHandle, Point3DHandle, Point3DHandle)

Calls native method graphene_box_init. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle Init(BoxHandle box, Point3DHandle min, Point3DHandle max)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

min Point3DHandle

Transfer ownership: None Nullable: True

max Point3DHandle

Transfer ownership: None Nullable: True

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

InitFromBox(BoxHandle, BoxHandle)

Calls native method graphene_box_init_from_box. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle InitFromBox(BoxHandle box, BoxHandle src)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

src BoxHandle

Transfer ownership: None Nullable: False

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

InitFromPoints(BoxHandle, uint, Point3DArrayHandle)

Calls native method graphene_box_init_from_points. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle InitFromPoints(BoxHandle box, uint nPoints, Point3DArrayHandle points)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

nPoints uint

Transfer ownership: None Nullable: False

points Point3DArrayHandle

Transfer ownership: None Nullable: False

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

InitFromVec3(BoxHandle, Vec3Handle, Vec3Handle)

Calls native method graphene_box_init_from_vec3. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle InitFromVec3(BoxHandle box, Vec3Handle min, Vec3Handle max)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

min Vec3Handle

Transfer ownership: None Nullable: True

max Vec3Handle

Transfer ownership: None Nullable: True

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

InitFromVectors(BoxHandle, uint, Vec3ArrayHandle)

Calls native method graphene_box_init_from_vectors. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle InitFromVectors(BoxHandle box, uint nVectors, Vec3ArrayHandle vectors)

Parameters

box BoxHandle

Transfer ownership: None Nullable: False

nVectors uint

Transfer ownership: None Nullable: False

vectors Vec3ArrayHandle

Transfer ownership: None Nullable: False

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

MinusOne()

Calls native function graphene_box_minus_one. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle MinusOne()

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

One()

Calls native function graphene_box_one. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle One()

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

OneMinusOne()

Calls native function graphene_box_one_minus_one. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle OneMinusOne()

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False

Zero()

Calls native function graphene_box_zero. Version: 1.2

[Version("1.2")]
public static extern BoxUnownedHandle Zero()

Returns

BoxUnownedHandle

Transfer ownership: None Nullable: False