Vector3

open class Vector3 : Parcelable

Represents a 3D vector with x, y, and z components.

This class is used for representing positions, directions, and other 3D data in the LiG Scanner SDK. The vector is immutable and implements Parcelable for easy serialization.

Constructors

Vector3
Link copied to clipboard
fun Vector3(x: Float, y: Float, z: Float)

Creates a new Vector3 with the specified components.

Vector3
Link copied to clipboard
fun Vector3(parcel: Parcel)

Types

CREATOR
Link copied to clipboard
object CREATOR : Parcelable.Creator<Vector3>

Functions

describeContents
Link copied to clipboard
open override fun describeContents(): Int
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toMeters
Link copied to clipboard
fun toMeters(): Vector3

Converts this vector from millimeters to meters by dividing each component by 1000.

toString
Link copied to clipboard
open override fun toString(): String
writeToParcel
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)

Properties

x
Link copied to clipboard
val x: Float

The x component of the vector

y
Link copied to clipboard
val y: Float

The y component of the vector

z
Link copied to clipboard
val z: Float

The z component of the vector