Skip to main content

transformation_3d_v3_21.json

Copy Json { "$schema": "http://json-schema.org/draft-04/schema#", "title": "3D Transformation Schema", "description": "A schem...

Updated over 3 weeks ago

Copy Json

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "3D Transformation Schema",
    "description": "A schema representing a 3D transformation with position (offset), rotation in radians, and scale along each axis.",
    "type": "object",
    "properties": {
        "offset": {
            "type": "object",
            "description": "Offset or position in 3D space",
            "properties": {
                "x": {
                    "type": "number",
                    "description": "Offset along the X-axis"
                },
                "y": {
                    "type": "number",
                    "description": "Offset along the Y-axis"
                },
                "z": {
                    "type": "number",
                    "description": "Offset along the Z-axis"
                }
            },
            "required": [
                "x",
                "y",
                "z"
            ]
        },
        "rotation": {
            "type": "object",
            "description": "Rotation in radians for each axis",
            "properties": {
                "x": {
                    "type": "number",
                    "description": "Rotation in radians around the X-axis"
                },
                "y": {
                    "type": "number",
                    "description": "Rotation in radians around the Y-axis"
                },
                "z": {
                    "type": "number",
                    "description": "Rotation in radians around the Z-axis"
                }
            },
            "required": [
                "x",
                "y",
                "z"
            ]
        },
        "scale": {
            "type": "object",
            "description": "Scaling factor for each axis",
            "properties": {
                "x": {
                    "type": "number",
                    "description": "Scale factor along the X-axis"
                },
                "y": {
                    "type": "number",
                    "description": "Scale factor along the Y-axis"
                },
                "z": {
                    "type": "number",
                    "description": "Scale factor along the Z-axis"
                }
            },
            "required": [
                "x",
                "y",
                "z"
            ]
        }
    }
}
Did this answer your question?