Conversion
Conversion routines.
Static members
Static member | Description |
CartesianFromSpherical(phi, theta)
Signature: (phi:float * theta:float) -> V3d
|
Returns unit vector in direction (phi, theta). Phi is rotation in xy-plane (x-axis is 0, y-axis is pi/2, ...). Positive theta rotates towards positive z-axis. |
CartesianFromSpherical(phiAndTheta)
Signature: phiAndTheta:V2d -> V3d
|
Returns unit vector in direction (phi, theta). Phi is rotation in xy-plane (x-axis is 0, y-axis is pi/2, ...). Positive theta rotates towards positive z-axis. |
CartesianFromSpherical(phi)
Signature: phi:float -> V2d
|
Returns unit vector in direction phi. Phi is rotation in xy-plane (x-axis is 0, y-axis is pi/2, ...). |
CelsiusFromFahrenheit(fahrenheit)
Signature: fahrenheit:float32 -> float32
|
Converts a temperature given in Fahrenheit to Celsius. |
CelsiusFromFahrenheit(fahrenheit)
Signature: fahrenheit:float -> float
|
Converts a temperature given in Fahrenheit to Celsius. |
CelsiusFromKelvin(kelvin)
Signature: kelvin:float32 -> float32
|
Converts a temperature given in Kelvin to Celsius. |
CelsiusFromKelvin(kelvin)
Signature: kelvin:float -> float
|
Converts a temperature given in Kelvin to Celsius. |
DegreesFromGons(gons)
Signature: gons:float32 -> float32
|
Converts an angle given in gons to degrees. |
DegreesFromGons(gons)
Signature: gons:float -> float
|
Converts an angle given in gons to degrees. |
DegreesFromRadians(radians)
Signature: radians:float32 -> float32
|
Converts an angle given in radians to degrees. |
DegreesFromRadians(radians)
Signature: radians:float -> float
|
Converts an angle given in radians to degrees. |
FahrenheitFromCelsius(celsius)
Signature: celsius:float32 -> float32
|
Converts a temperature given in Celsius to Fahrenheit. |
FahrenheitFromCelsius(celsius)
Signature: celsius:float -> float
|
Converts a temperature given in Celsius to Fahrenheit. |
FahrenheitFromKelvin(kelvin)
Signature: kelvin:float32 -> float32
|
Converts a temperature given in Kelvin to Fahrenheit. |
FahrenheitFromKelvin(kelvin)
Signature: kelvin:float -> float
|
Converts a temperature given in Kelvin to Fahrenheit. |
GonsFromDegrees(degrees)
Signature: degrees:float32 -> float32
|
Converts an angle given in degrees to gons. |
GonsFromDegrees(degrees)
Signature: degrees:float -> float
|
Converts an angle given in degrees to gons. |
GonsFromRadians(radians)
Signature: radians:float32 -> float32
|
Converts an angle given in radians to gons. |
GonsFromRadians(radians)
Signature: radians:float -> float
|
Converts an angle given in radians to gons. |
HostToNetworkOrder(x)
Signature: x:int16 -> byte []
|
|
HostToNetworkOrder(x)
Signature: x:uint16 -> byte []
|
|
HostToNetworkOrder(x)
Signature: x:int -> byte []
|
|
HostToNetworkOrder(x)
Signature: x:uint32 -> byte []
|
|
HostToNetworkOrder(x)
Signature: x:int64 -> byte []
|
|
HostToNetworkOrder(x)
Signature: x:uint64 -> byte []
|
|
HostToNetworkOrder(x)
Signature: x:float32 -> byte []
|
|
HostToNetworkOrder(x)
Signature: x:float -> byte []
|
|
KelvinFromCelsius(celsius)
Signature: celsius:float32 -> float32
|
Converts a temperature given in Celsius to Kelvin. |
KelvinFromCelsius(celsius)
Signature: celsius:float -> float
|
Converts a temperature given in Celsius to Kelvin. |
KelvinFromFahrenheit(fahrenheit)
Signature: fahrenheit:float32 -> float32
|
Converts a temperature given in Fahrenheit to Kelvin. |
KelvinFromFahrenheit(fahrenheit)
Signature: fahrenheit:float -> float
|
Converts a temperature given in Fahrenheit to Kelvin. |
LabToXYZ(lab)
Signature: lab:C3f -> C3f
|
converts Lab-color to XYZ-color |
NetworkToHostOrderDouble(data)
Signature: (data:byte []) -> float
|
|
NetworkToHostOrderDoubleInPlace(data)
Signature: (data:byte []) -> float
|
|
NetworkToHostOrderInt16(data)
Signature: (data:byte []) -> int16
|
|
NetworkToHostOrderInt16InPlace(data)
Signature: (data:byte []) -> int16
|
|
NetworkToHostOrderInt32(data)
Signature: (data:byte []) -> int
|
|
NetworkToHostOrderInt32InPlace(data)
Signature: (data:byte []) -> int
|
|
NetworkToHostOrderInt64(data)
Signature: (data:byte []) -> int64
|
|
NetworkToHostOrderInt64InPlace(data)
Signature: (data:byte []) -> int64
|
|
NetworkToHostOrderSingle(data)
Signature: (data:byte []) -> float32
|
|
NetworkToHostOrderSingleInPlace(data)
Signature: (data:byte []) -> float32
|
|
NetworkToHostOrderUInt16(data)
Signature: (data:byte []) -> uint16
|
|
NetworkToHostOrderUInt16InPlace(data)
Signature: (data:byte []) -> uint16
|
|
NetworkToHostOrderUInt32(data)
Signature: (data:byte []) -> uint32
|
|
NetworkToHostOrderUInt32InPlace(data)
Signature: (data:byte []) -> uint32
|
|
NetworkToHostOrderUInt64(data)
Signature: (data:byte []) -> uint64
|
|
NetworkToHostOrderUInt64InPlace(data)
Signature: (data:byte []) -> uint64
|
|
RadiansFromDegrees(degrees)
Signature: degrees:float32 -> float32
|
Converts an angle given in degrees to radians. |
RadiansFromDegrees(degrees)
Signature: degrees:float -> float
|
Converts an angle given in degrees to radians. |
RadiansFromGons(gons)
Signature: gons:float32 -> float32
|
Converts an angle given in gons to radians. |
RadiansFromGons(gons)
Signature: gons:float -> float
|
Converts an angle given in gons to radians. |
ReverseBytes(data)
Signature: (data:byte []) -> unit
|
Reverses elements of given byte array. |
SphericalFromCartesian(v)
Signature: v:V3d -> V2d
|
Returns spherical direction (phi, theta) from Cartesian direction. |
SphericalFromCartesian(v)
Signature: v:V2d -> float
|
Returns spherical direction (phi) from Cartesian direction. |
XYZToLab(xyz)
Signature: xyz:C3f -> C3f
|
Converts XYZ-color to Lab-color |