Vector3D

org.abh80.nf.core.math.Vector3D
See theVector3D companion class
object Vector3D

Companion object for Vector3D. Provides utility methods and implicit operations for vectors.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Vector3D.type

Members list

Type members

Classlikes

implicit class BinOp(self: Vector3D)

Provides arithmetic and geometric operations for Vector3D.

Provides arithmetic and geometric operations for Vector3D.

Value parameters

self

The vector instance.

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Creates a Vector3D from three DistanceUnit values.

Creates a Vector3D from three DistanceUnit values.

Value parameters

x

The x-component.

y

The y-component.

z

The z-component.

Attributes

Returns

The corresponding Vector3D.

def fromArray[T <: DistanceUnit](arr: Array[T]): Vector3D

Creates a Vector3D from an array of DistanceUnit values.

Creates a Vector3D from an array of DistanceUnit values.

Value parameters

arr

Array of 3 DistanceUnit elements (x, y, z).

Attributes

Returns

The corresponding Vector3D.

Throws
IllegalArgumentException

if the array does not have exactly 3 elements.

Concrete fields

val Zero: Vector3D

The zero vector (0, 0, 0).

The zero vector (0, 0, 0).

Attributes

Implicits

Implicits

final implicit def BinOp(self: Vector3D): BinOp

Provides arithmetic and geometric operations for Vector3D.

Provides arithmetic and geometric operations for Vector3D.

Value parameters

self

The vector instance.

Attributes