Search
Preparing search index...
The search index is not available
rhodonite
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
rhodonite
Scalar
Class Scalar
Immutable Scalar class with 32bit float components
Hierarchy
Scalar_
<
Float32ArrayConstructor
>
Scalar
Implements
IScalar
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
Scalar
(
x
:
TypedArray
)
:
Scalar
Parameters
x:
TypedArray
Returns
Scalar
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
(
)
:
Scalar
Returns
Scalar
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_
<
Float32ArrayConstructor
>
, delta
?:
number
)
:
boolean
Parameters
scalar:
Scalar_
<
Float32ArrayConstructor
>
delta:
number
= Number.EPSILON
Returns
boolean
is
Strict
Equal
is
Strict
Equal
(
scalar
:
Scalar_
<
Float32ArrayConstructor
>
)
:
boolean
Parameters
scalar:
Scalar_
<
Float32ArrayConstructor
>
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
change to 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
(
)
:
Scalar
Returns
Scalar
Static
from
Copy
Number
from
Copy
Number
(
value
:
number
)
:
Scalar
Parameters
value:
number
Returns
Scalar
Static
one
one
(
)
:
Scalar
Returns
Scalar
Static
zero
zero
(
)
:
Scalar
Returns
Scalar
Exports
Scalar
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 32bit float components