Vector4

indigo.shared.datatypes.Vector4
See theVector4 companion object
final case class Vector4(x: Double, y: Double, z: Double, w: Double)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def %(other: Vector4): Vector4
def %(value: Double): Vector4
def *(other: Vector4): Vector4
def *(value: Double): Vector4
def +(other: Vector4): Vector4
def +(value: Double): Vector4
def -(other: Vector4): Vector4
def -(value: Double): Vector4
def /(other: Vector4): Vector4
def /(value: Double): Vector4
def abs: Vector4
def ceil: Vector4
def clamp(min: Double, max: Double): Vector4
def clamp(min: Vector4, max: Vector4): Vector4
def distanceTo(other: Vector4): Double
def dot(other: Vector4): Double
def floor: Vector4
def length: Double
def magnitude: Double
def max(other: Vector4): Vector4
def max(value: Double): Vector4
def min(other: Vector4): Vector4
def min(value: Double): Vector4
def moveBy(amount: Vector4): Vector4
def moveBy(x: Double, y: Double, z: Double, w: Double): Vector4
def moveTo(newPosition: Vector4): Vector4
def moveTo(x: Double, y: Double, z: Double, w: Double): Vector4
def round: Vector4
def scaleBy(vec: Vector4): Vector4
def scaleBy(amount: Double): Vector4
def toBatch: Batch[Double]
def toPoint: Point
def toSize: Size
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def transform(matrix4: Matrix4): Vector4
def withW(newW: Double): Vector4
def withX(newX: Double): Vector4
def withY(newY: Double): Vector4
def withZ(newZ: Double): Vector4
def ~==(other: Vector4): Boolean

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product