Search
Preparing search index...
The search index is not available
rhodonite
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
rhodonite
Scalard
Class Scalard
Immutable Scalar class with 64bit float components
Hierarchy
Scalar_
<
Float64ArrayConstructor
>
Scalard
Index
Constructors
constructor
Properties
_v
Accessors
bytes
Per
Component
class
Name
glsl
Str
As
Float
glsl
Str
As
Int
raw
x
composition
Type
Methods
at
clone
dot
flatten
As
Array
get
Value
get
Value
In
Array
is
Dummy
is
Equal
is
Strict
Equal
is
The
Source
Same
length
length
Squared
length
To
to
String
to
String
Approximately
v
_dummy
_from
Copy
Number
dummy
from
Copy
Number
one
zero
Constructors
constructor
new
Scalard
(
x
:
TypedArray
)
:
Scalard
Parameters
x:
TypedArray
Returns
Scalard
Properties
_v
_v
:
TypedArray
= ...
Accessors
bytes
Per
Component
get
bytesPerComponent
(
)
:
number
Returns
number
class
Name
get
className
(
)
:
string
Returns
string
glsl
Str
As
Float
get
glslStrAsFloat
(
)
:
string
Returns
string
glsl
Str
As
Int
get
glslStrAsInt
(
)
:
string
Returns
string
raw
get
raw
(
)
:
TypedArray
Returns
TypedArray
x
get
x
(
)
:
number
Returns
number
Static
composition
Type
get
compositionType
(
)
:
CompositionTypeEnum
Returns
CompositionTypeEnum
Methods
at
at
(
i
:
number
)
:
number
Parameters
i:
number
Returns
number
clone
clone
(
)
:
Scalard
Returns
Scalard
dot
dot
(
vec
:
IVector
)
:
number
Parameters
vec:
IVector
Returns
number
flatten
As
Array
flatten
As
Array
(
)
:
number
[]
Returns
number
[]
get
Value
get
Value
(
)
:
number
Returns
number
get
Value
In
Array
get
Value
In
Array
(
)
:
number
[]
Returns
number
[]
is
Dummy
is
Dummy
(
)
:
boolean
Returns
boolean
is
Equal
is
Equal
(
scalar
:
Scalar_
<
Float64ArrayConstructor
>
, delta
?:
number
)
:
boolean
Parameters
scalar:
Scalar_
<
Float64ArrayConstructor
>
delta:
number
= Number.EPSILON
Returns
boolean
is
Strict
Equal
is
Strict
Equal
(
scalar
:
Scalar_
<
Float64ArrayConstructor
>
)
:
boolean
Parameters
scalar:
Scalar_
<
Float64ArrayConstructor
>
Returns
boolean
is
The
Source
Same
is
The
Source
Same
(
arrayBuffer
:
ArrayBuffer
)
:
boolean
Parameters
arrayBuffer:
ArrayBuffer
Returns
boolean
length
length
(
)
:
number
Returns
number
length
Squared
length
Squared
(
)
:
number
Returns
number
length
To
length
To
(
vec
:
IVector
)
:
number
Parameters
vec:
IVector
Returns
number
to
String
to
String
(
)
:
string
Returns
string
to
String
Approximately
to
String
Approximately
(
)
:
string
Returns
string
v
v
(
i
:
number
)
:
number
Parameters
i:
number
Returns
number
Static
_dummy
_dummy
(
type
:
FloatTypedArrayConstructor
)
:
Scalar_
<
FloatTypedArrayConstructor
>
Parameters
type:
FloatTypedArrayConstructor
Returns
Scalar_
<
FloatTypedArrayConstructor
>
Static
_from
Copy
Number
_from
Copy
Number
(
value
:
number
, type
:
FloatTypedArrayConstructor
)
:
Scalar_
<
FloatTypedArrayConstructor
>
Parameters
value:
number
type:
FloatTypedArrayConstructor
Returns
Scalar_
<
FloatTypedArrayConstructor
>
Static
dummy
dummy
(
)
:
Scalard
Returns
Scalard
Static
from
Copy
Number
from
Copy
Number
(
value
:
number
)
:
Scalard
Parameters
value:
number
Returns
Scalard
Static
one
one
(
)
:
Scalard
Returns
Scalard
Static
zero
zero
(
)
:
Scalard
Returns
Scalard
Exports
Scalard
constructor
_v
bytes
Per
Component
class
Name
glsl
Str
As
Float
glsl
Str
As
Int
raw
x
composition
Type
at
clone
dot
flatten
As
Array
get
Value
get
Value
In
Array
is
Dummy
is
Equal
is
Strict
Equal
is
The
Source
Same
length
length
Squared
length
To
to
String
to
String
Approximately
v
_dummy
_from
Copy
Number
dummy
from
Copy
Number
one
zero
Generated using
TypeDoc
Immutable Scalar class with 64bit float components