Vector3D

class Vector3D : Parcelable


A three-dimensional real vector.

Summary

Constants

const Parcelable.Creator<Vector3D!>!

Public constructors

Vector3D(x: Double, y: Double, z: Double)

Constructs a Vector3D.

Public functions

Unit
writeToParcel(dest: Parcel!, flags: Int)

Public properties

Double
Double
Double

Extension functions

Unit

Validates a specified Vector3D object properties: x, y, and z to be finite values.

Inherited functions

From android.os.Parcelable
abstract Int

Constants

CREATOR

const val CREATORParcelable.Creator<Vector3D!>!

Public constructors

Vector3D

Vector3D(x: Double, y: Double, z: Double)

Constructs a Vector3D.

Parameters
x: Double

The x-component of the vector.

y: Double

The y-component of the vector.

z: Double

The z-component of the vector.

Public functions

writeToParcel

fun writeToParcel(dest: Parcel!, flags: Int): Unit

Public properties

x

var xDouble

y

var yDouble

z

var zDouble

Extension functions

validate

fun Vector3D.validate(): Unit

Validates a specified Vector3D object properties: x, y, and z to be finite values.

Throws
java.lang.IllegalArgumentException

If the Vector3D is not valid.