Point3d

class Point3d(val graphenePoint3dPointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

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

Since

1.0

Constructors

Link copied to clipboard
constructor()

Allocate a new Point3d.

constructor(scope: <Error class: unknown class>)

Allocate a new Point3d using the provided AutofreeScope.

constructor(x: <Error class: unknown class>, y: <Error class: unknown class>, z: <Error class: unknown class>)

Allocate a new Point3d.

constructor(x: <Error class: unknown class>, y: <Error class: unknown class>, z: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Point3d using the provided AutofreeScope.

constructor(graphenePoint3dPointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val graphenePoint3dPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var x: <Error class: unknown class>

the X coordinate

Link copied to clipboard
var y: <Error class: unknown class>

the Y coordinate

Link copied to clipboard
var z: <Error class: unknown class>

the Z coordinate

Functions

Link copied to clipboard
fun cross(b: Point3d, res: Point3d)

Computes the cross product of the two given #graphene_point3d_t.

Link copied to clipboard
fun distance(b: Point3d, delta: Vec3?): <Error class: unknown class>

Computes the distance between the two given #graphene_point3d_t.

Link copied to clipboard
fun dot(b: Point3d): <Error class: unknown class>

Computes the dot product of the two given #graphene_point3d_t.

Link copied to clipboard

Checks whether two given points are equal.

Link copied to clipboard
fun free()

Frees the resources allocated via graphene_point3d_alloc().

Link copied to clipboard
fun init(x: <Error class: unknown class>, y: <Error class: unknown class>, z: <Error class: unknown class>): Point3d

Initializes a #graphene_point3d_t with the given coordinates.

Link copied to clipboard

Initializes a #graphene_point3d_t using the coordinates of another #graphene_point3d_t.

Link copied to clipboard

Initializes a #graphene_point3d_t using the components of a #graphene_vec3_t.

Link copied to clipboard
fun interpolate(b: Point3d, factor: <Error class: unknown class>, res: Point3d)

Linearly interpolates each component of @a and @b using the provided @factor, and places the result in @res.

Link copied to clipboard
fun length(): <Error class: unknown class>

Computes the length of the vector represented by the coordinates of the given #graphene_point3d_t.

Link copied to clipboard
fun near(b: Point3d, epsilon: <Error class: unknown class>): Boolean

Checks whether the two points are near each other, within an @epsilon factor.

Link copied to clipboard
fun normalize(res: Point3d)

Computes the normalization of the vector represented by the coordinates of the given #graphene_point3d_t.

Link copied to clipboard
fun normalizeViewport(viewport: Rect, zNear: <Error class: unknown class>, zFar: <Error class: unknown class>, res: Point3d)

Normalizes the coordinates of a #graphene_point3d_t using the given viewport and clipping planes.

Link copied to clipboard
fun scale(factor: <Error class: unknown class>, res: Point3d)

Scales the coordinates of the given #graphene_point3d_t by the given @factor.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun toVec3(v: Vec3)

Stores the coordinates of a #graphene_point3d_t into a #graphene_vec3_t.