Skip to main content
Glama

Minecraft Bedrock MCP Server

by Mming-Lab
hyperboloid-calculator.ts1.21 kB
/** * 双曲面座標計算ライブラリ * 双曲面構造の座標計算に特化した純粋関数 */ import { Position } from '../block-optimizer'; import { calculateCirclePositions } from './cylinder-calculator'; /** * 双曲面座標を計算 * @param center 双曲面の中心座標 * @param radius 双曲面の基準半径 * @param height 双曲面の高さ * @param waist 双曲面のくびれ係数(0.1-1.0) * @param hollow 中空にするかどうか * @returns 双曲面を構成する座標配列 */ export function calculateHyperboloidPositions( center: Position, radius: number, height: number, waist: number = 0.5, hollow: boolean = false ): Position[] { const positions: Position[] = []; const steps = height; for (let i = 0; i < steps; i++) { const y = i - height / 2; const normalizedY = y / (height / 2); const currentRadius = radius * Math.sqrt(waist * waist + normalizedY * normalizedY); const circlePositions = calculateCirclePositions( { x: center.x, y: center.y + y, z: center.z }, currentRadius, 'y', 0, hollow ); positions.push(...circlePositions); } return positions; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mming-Lab/minecraft-bedrock-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server