Float64x2 class - dart:typed_data library (original) (raw)
Float64x2 immutable value type and operations.
Float64x2 stores 2 64-bit floating point values in "lanes". The lanes are "x" and "y" respectively.
It is a compile-time error for a class to attempt to extend or implementFloat64x2.
Constructors
factory
Float64x2.fromFloat32x4(Float32x4 v)
Uses the "x" and "y" lanes from v.
factory
factory
factory
Properties
The hash code for this object.
no setterinherited
A representation of the runtime type of the object.
no setterinherited
Extract the sign bits from each lane return them in the first 2 bits. "x" lane is bit 0. "y" lane is bit 1.
no setter
Extracted x value.
no setter
Extracted y value.
no setter
Methods
The lane-wise absolute value of this Float64x2.
clamp(Float64x2 lowerLimit, Float64x2 upperLimit)→ Float64x2
Lane-wise clamp this Float64x2 to be in the rangelowerLimit-upperLimit.
max(Float64x2 other)→ Float64x2
The lane-wise maximum value in this Float64x2 or other.
min(Float64x2 other)→ Float64x2
The lane-wise minimum value in this Float64x2 or other.
noSuchMethod(Invocation invocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
Returns a copy of this Float64x2 each lane being scaled by s. Equivalent to this * new Float64x2.splat(s)
The lane-wise square root of this Float64x2.
A string representation of this object.
inherited
Returns a new Float64x2 copied from this Float64x2 with a new x value.
Returns a new Float64x2 copied from this Float64x2 with a new y value.
Operators
operator *(Float64x2 other)→ Float64x2
Multiplication operator.
operator +(Float64x2 other)→ Float64x2
Addition operator.
operator -(Float64x2 other)→ Float64x2
Subtraction operator.
operator /(Float64x2 other)→ Float64x2
Division operator.
operator ==(Object other)→ bool
The equality operator.
inherited
Negate operator.