• Home
  • Samples
  • Api Documentation
Show / Hide Table of Contents
  • Aximo
    • AssetManager
    • AxMath
    • AxPixelFormat
    • AxPrimitiveType
    • BoxExtensions
    • BoxHelper
    • BufferData
    • BufferData1D
    • BufferData1D<T>
    • BufferData2D
    • BufferData2D<T>
    • BufferData3D
    • BufferData3D<T>
    • BufferDataExtentions
    • Camera
    • Camera.CameraChangedDelegate
    • CameraType
    • DebugHelper
    • DictionaryExtensions
    • EventCounter
    • FaceExtensions
    • GenerateFileDelegate
    • Hashing
    • IArray<T>
    • IData
    • IDynamicArray<T>
    • ImageExtensions
    • IPosition
    • IVisitor
    • IVisitorNode
    • Line2
    • Line3
    • ListExtensions
    • Log
    • LogExtensions
    • Mesh
    • MeshColorComponent
    • MeshComponent
    • MeshComponent<T>
    • MeshComponentType
    • MeshFace<T>
    • MeshFaceType
    • MeshNormalComponent
    • MeshPosition2Component
    • MeshPosition3Component
    • MeshPositionComponent<T>
    • MeshUVComponent
    • MeshVertexList<T>
    • OrthographicCamera
    • PathBuilder
    • PerspectiveFieldOfViewCamera
    • Plane
    • Ray
    • ScreenResizeEventArgs
    • SharedLib
    • StreamExtensions
    • StringExtensions
    • Transform
    • VectorExtensions
    • VectorHelper
  • Aximo.Engine
    • Actor
    • ActorComponent
    • AfterApplicationInitializedDelegate
    • Application
    • ApplicationConfig
    • BufferComponent
    • CommandLineOptions
    • ISceneInterface
    • LerpFunc<TValue>
    • Material
    • Material.Parameter
    • Material.ParamterType
    • MaterialManager
    • MeshBuilder
    • PipelineType
    • PrimitiveDrawInterface
    • PrimitiveSceneProxy
    • ScaleFunc
    • ScaleFuncs
    • SceneComponent
    • SceneContext
    • SceneObject
    • Shader
    • Startup
    • Startup<TApplication, TGtk>
    • Startup<TApplication>
    • StaticMeshSceneProxy
    • StaticPrimitiveDrawInterface
    • TaskQueue
    • Texture
    • TextureManager
    • Tween
    • Tween<TValue>
    • Tween1
    • Tween2
    • Tween3
    • TweenBuilder
    • TweenBuilder<TTarget>
    • TweenBuilderExtensions
    • TweenFinishedDelegate
    • TweenState
    • TweenStopBehavior
  • Aximo.Engine.Audio
    • AudioManager
  • Aximo.Engine.Components.Geometry
    • CrossLineComponent
    • CubeComponent
    • DebugCubeComponent
    • GraphicsScreenTextureComponent
    • GridPlaneComponent
    • LineComponent
    • MeshComponent
    • PrimitiveComponent
    • QuadComponent
    • ScreenTextureComponent
    • SkyBoxComponent
    • SphereComponent
    • StaticMeshComponent
    • StatsComponent
  • Aximo.Engine.Components.Lights
    • DirectionalLightComponent
    • LightComponent
    • PointLightComponent
  • Aximo.Engine.Components.UI
    • UIAnchors
    • UIButton
    • UIButtonComponent
    • UIComponent
    • UIContainerComponent
    • UIDock
    • UIFloatingContainer
    • UIFlowContainer
    • UIImage
    • UILabelComponent
    • UIPanelComponent
    • UIRect
  • Aximo.Engine.Windows
    • GtkUI
    • MouseButtonArgs
    • MouseMoveArgs
    • RenderWindow
    • WindowContext
  • Aximo.Generators.AlchemyCircle
    • AlchemyCircleGenerator
    • AlchemyCircleOptions
    • CiaccoRandom
    • TextureDraw
  • Aximo.Render
    • IBounds
    • IDeferredRenderable
    • IForwardRenderable
    • ILightObject
    • ILightTarget
    • IMeshObject
    • IReloadable
    • IRenderableObject
    • IRenderObject
    • IRenderTarget
    • IScaleRotate
    • IScreenRenderable
    • IShadowObject
    • IUpdateFrame
    • LightType
    • MaterialColorBlendMode
    • MeshDepthSorter
    • PixelFormatExtensions
    • PrimitiveObject
    • RenderContext
    • Renderer
    • RendererMaterial
    • ScreenTextureObject
    • SlotAllocator<T>
  • Aximo.Render.Objects
    • LightObject
    • RenderObject
    • RenderObjectBase
    • ScreenSceneObject
    • ScreenshotObject
    • SimpleVertexObject
    • SkyboxObject
  • Aximo.Render.OpenGL
    • BindingPoint
    • BufferObject
    • CullFaceMode
    • DepthFunction
    • DynamicInternalMesh
    • ElementsBufferObject
    • FlushRenderBackend
    • FrameBuffer
    • GraphicsDevice
    • GraphicsTexture
    • InternalLightManager
    • InternalMesh
    • InternalTextureManager
    • IObjectHandle
    • IObjectIdentifier
    • IObjectLabel
    • MeshData
    • MeshData<T>
    • MeshDataBuilder
    • MeshExtensions
    • ObjectManager
    • RenderBuffer
    • RendererShader
    • RendererTexture
    • ShaderCompilation
    • ShaderSource
    • StaticInternalMesh
    • StructHelper
    • UniformBufferObject
    • VertexArrayObject
    • VertexBufferObject
    • VertexLayoutBinded
    • VertexLayoutBindedAttribute
    • VertexLayoutDefinition
    • VertexLayoutDefinitionAttribute
  • Aximo.Render.Pipelines
    • DeferredPass
    • DeferredRenderPipeline
    • DirectionalShadowRenderPipeline
    • ForwardRenderPipeline
    • IRenderPipeline
    • PointShadowRenderPipeline
    • RenderPipeline
    • ScreenPipeline
  • Aximo.Util.IcoSphere
    • IcoSphereCreator
    • IcoSphereMesh
    • MeshGeometry3D
    • TriangleIndices
    • VertexSoup<TVertexStruct>
  • Aximo.VertexData
    • EngineExtensions
    • IPrimitive
    • IPrimitive<TVertex>
    • IVertex
    • IVertexColor
    • IVertexNormal
    • IVertexPos2UV
    • IVertexPosColor
    • IVertexPosition<TVector>
    • IVertexPosition2
    • IVertexPosition3
    • IVertexPosNormalColor
    • IVertexPosNormalUV
    • IVertexPosUV
    • IVertexUV
    • Line<TVertex>
    • Polygon<TVertex>
    • Quad<TVertex>
    • VertexDataPos
    • VertexDataPos2
    • VertexDataPos2UV
    • VertexDataPosColor
    • VertexDataPosNormalColor
    • VertexDataPosNormalUV
    • VertexDataPosUV
  • OpenToolkit.Mathematics
    • AntiVector4d
    • BiVector3d
    • BiVector4d
    • Rotor3

Class AxMath

Inheritance
System.Object
AxMath
Namespace: Aximo
Assembly: AxCommon.dll
Syntax
public static class AxMath

Fields

| Improve this Doc View Source

Deg2Rad

Degrees-to-radians conversion constant

Declaration
public const float Deg2Rad = 0.0174532924F
Field Value
Type Description
System.Single
| Improve this Doc View Source

Norm2Rad

Normal-to-radians conversion constant. Normal: 0f..1f

Declaration
public const float Norm2Rad = 6.28318548F
Field Value
Type Description
System.Single
| Improve this Doc View Source

Rad2Deg

Radians-to-degrees conversion constant

Declaration
public const float Rad2Deg = 57.29578F
Field Value
Type Description
System.Single
| Improve this Doc View Source

Rad2Norm

Radians-to-normal conversion constant. Normal: 0f..1f

Declaration
public const float Rad2Norm = 0.159154937F
Field Value
Type Description
System.Single

Methods

| Improve this Doc View Source

Approximately(Single, Single)

Declaration
public static bool Approximately(float a, float b)
Parameters
Type Name Description
System.Single a
System.Single b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CosDeg(Single)

Declaration
public static float CosDeg(float deg)
Parameters
Type Name Description
System.Single deg
Returns
Type Description
System.Single
| Improve this Doc View Source

CosNorm(Single)

Declaration
public static float CosNorm(float norm)
Parameters
Type Name Description
System.Single norm
Returns
Type Description
System.Single
| Improve this Doc View Source

Map(Vector2, Vector2, Vector2, Vector2, Vector2)

Declaration
public static Vector2 Map(Vector2 input, Vector2 fromMin, Vector2 fromMax, Vector2 toMin, Vector2 toMax)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector2 input
OpenToolkit.Mathematics.Vector2 fromMin
OpenToolkit.Mathematics.Vector2 fromMax
OpenToolkit.Mathematics.Vector2 toMin
OpenToolkit.Mathematics.Vector2 toMax
Returns
Type Description
OpenToolkit.Mathematics.Vector2
| Improve this Doc View Source

Map(Single, Single, Single, Single, Single)

Declaration
public static float Map(float input, float fromMin, float fromMax, float toMin, float toMax)
Parameters
Type Name Description
System.Single input
System.Single fromMin
System.Single fromMax
System.Single toMin
System.Single toMax
Returns
Type Description
System.Single
| Improve this Doc View Source

MapFromNDC(Vector2, Vector2)

Declaration
public static Vector2 MapFromNDC(Vector2 input, Vector2 toMax)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector2 input
OpenToolkit.Mathematics.Vector2 toMax
Returns
Type Description
OpenToolkit.Mathematics.Vector2
| Improve this Doc View Source

MapFromNDC(Vector2, Vector2i)

Declaration
public static Vector2 MapFromNDC(Vector2 input, Vector2i toMax)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector2 input
OpenToolkit.Mathematics.Vector2i toMax
Returns
Type Description
OpenToolkit.Mathematics.Vector2
| Improve this Doc View Source

MapFromNDC(Single, Single, Single, Single, Single)

Declaration
public static float MapFromNDC(float input, float fromMin, float fromMax, float toMin, float toMax)
Parameters
Type Name Description
System.Single input
System.Single fromMin
System.Single fromMax
System.Single toMin
System.Single toMax
Returns
Type Description
System.Single
| Improve this Doc View Source

MapToNDC(Vector2, Vector2)

Declaration
public static Vector2 MapToNDC(Vector2 input, Vector2 fromMax)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector2 input
OpenToolkit.Mathematics.Vector2 fromMax
Returns
Type Description
OpenToolkit.Mathematics.Vector2
| Improve this Doc View Source

MapToNDC(Single, Single, Single)

Declaration
public static float MapToNDC(float input, float fromMin, float fromMax)
Parameters
Type Name Description
System.Single input
System.Single fromMin
System.Single fromMax
Returns
Type Description
System.Single
| Improve this Doc View Source

NormalizedToRadians(Single)

Declaration
public static float NormalizedToRadians(float normalizedAngle)
Parameters
Type Name Description
System.Single normalizedAngle
Returns
Type Description
System.Single
| Improve this Doc View Source

QuaternionFromNormalizedAngles(Vector3)

Declaration
public static Quaternion QuaternionFromNormalizedAngles(Vector3 normalizedAngle)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector3 normalizedAngle
Returns
Type Description
OpenToolkit.Mathematics.Quaternion
| Improve this Doc View Source

QuaternionFromNormalizedAngles(Single, Single, Single)

Declaration
public static Quaternion QuaternionFromNormalizedAngles(float rotationX, float rotationY, float rotationZ)
Parameters
Type Name Description
System.Single rotationX
System.Single rotationY
System.Single rotationZ
Returns
Type Description
OpenToolkit.Mathematics.Quaternion
| Improve this Doc View Source

Round(Vector3)

Declaration
public static Vector3 Round(this Vector3 vec)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector3 vec
Returns
Type Description
OpenToolkit.Mathematics.Vector3
| Improve this Doc View Source

Round(Vector3, Int32)

Declaration
public static Vector3 Round(this Vector3 vec, int digits)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector3 vec
System.Int32 digits
Returns
Type Description
OpenToolkit.Mathematics.Vector3
| Improve this Doc View Source

SinDeg(Single)

Declaration
public static float SinDeg(float deg)
Parameters
Type Name Description
System.Single deg
Returns
Type Description
System.Single
| Improve this Doc View Source

SinNorm(Single)

Declaration
public static float SinNorm(float norm)
Parameters
Type Name Description
System.Single norm
Returns
Type Description
System.Single
| Improve this Doc View Source

ToQuaternion(Vector3)

Declaration
public static Quaternion ToQuaternion(this Vector3 normalizedAngle)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector3 normalizedAngle
Returns
Type Description
OpenToolkit.Mathematics.Quaternion
| Improve this Doc View Source

ToVector2i(Vector2)

Declaration
public static Vector2i ToVector2i(this Vector2 vec)
Parameters
Type Name Description
OpenToolkit.Mathematics.Vector2 vec
Returns
Type Description
OpenToolkit.Mathematics.Vector2i
  • Improve this Doc
  • View Source
Back to top Generated by DocFX